RE: Capistrano on Windows - Send Binary File

olumn_and_capistrano
) for using Capistrano to deploy to a remote machine when the SVN
repository isn’t accessible over the Internet.

I keep running into a problem, though, with

put(File.read(“code_update.tar.gz”), “code_update.tar.gz”)

You’ll have to use the instance method instead, which lets you specify
binary mode:

data = nil
File.open(‘code_update.tar.gz’, ‘rb’){ |fh| data = fh.read }

put(data, ‘code_update.tar.gz’)

HTH,

Dan

This communication is the property of Qwest and may contain confidential
or
privileged information. Unauthorized use of this communication is
strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
destroy
all copies of the communication and any attachments.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs