Yeah, put is still handy when you have the contents of the file in  
memory, not on-disk, and you want to transfer it. Think "ERb  
templates". :) You can still use upload for that, but it's not as clean:

   put "this data", "/to/this/file"
   # vs.
   upload StringIO.new("this data"), "/to/this/file"

Under the covers, put() calls upload() anyway, so it's all the same  
Net::SFTP/Net::SCP goodness underneath.

- Jamis

On May 3, 2008, at 7:58 AM, [EMAIL PROTECTED] wrote:

>
> Thankd for all the hard work on this.
>
> I like the upload and download helpers.
>
> Do you see any case where I would want to use 'put' to copy out a
> file?
>
> - Mike
>
> >


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to