Ah, good catch, Sean. That's exactly it. You can't do File.read
("foo") in Win32, because that opens in text mode. You need to do it
longhand:
contents = File.open("foo", "rb") { |f| f.read }
put contents, "/path/on/remote/server"
- Jamis
On May 31, 2007, at 1:20 PM, Sean Cribbs wrote:
>
> It looks to me like a Win32 problem, specifically not opening the file
> in binary mode. That would result in the file being corrupted and
> effectively truncated. I ran into this a long time ago when trying to
> attach binary files to mail sent from ActionMailer.
>
> Sean Cribbs
> seancribbs.com
>
> peterB wrote:
>> Yes, I got net-sftp-1.1.0. The error is when cap wants to
>> uncompress .zip .tar file
>>
>>
>>>
>>
>>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---