<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>source.mihelac.org - Capistrano get method - download files from server Comments</title>
  <id>tag:source.mihelac.org,2008:/2007/1/11/capistrano-get-method-download-files-from-server/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://source.mihelac.org/2007/1/11/capistrano-get-method-download-files-from-server/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2007/1/11/capistrano-get-method-download-files-from-server" rel="alternate" type="text/html"/>
  <updated>2008-07-30T18:20:09Z</updated>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>todd A. Fisher</name>
    </author>
    <id>tag:source.mihelac.org,2007-01-11:27:3548</id>
    <published>2008-07-30T18:20:09Z</published>
    <updated>2008-07-30T18:20:09Z</updated>
    <link href="http://source.mihelac.org/2007/1/11/capistrano-get-method-download-files-from-server" rel="alternate" type="text/html"/>
    <title>Comment on 'Capistrano get method - download files from server' by todd A. Fisher</title>
<content type="html">&lt;p&gt;newer versions of cap have download, seems to work the same way&#8230;&lt;/p&gt;


	&lt;ol&gt;
	&lt;li&gt;Initiates a download from &lt;ins&gt;remote&lt;/ins&gt; to &lt;ins&gt;local&lt;/ins&gt;, asynchronously. This&lt;/li&gt;
		&lt;li&gt;method will return a new Net::SFTP::Operations::Download instance, and requires&lt;/li&gt;
		&lt;li&gt;that the event loop be run in order for the download to progress. See&lt;/li&gt;
		&lt;li&gt;Net::SFTP::Operations::Download for a full discussion of hos this method can be&lt;/li&gt;
		&lt;li&gt;used.
#&lt;/li&gt;
		&lt;li&gt;  download = sftp.download(&#8221;/remote/path&#8221;, &#8221;/local/path&#8221;)&lt;/li&gt;
		&lt;li&gt;  download.wait
def download(remote, local, options={}, &#38;block)
  Operations::Download.new(self, local, remote, options, &#38;block)
end&lt;/li&gt;
	&lt;/ol&gt;</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>Tom</name>
    </author>
    <id>tag:source.mihelac.org,2007-01-11:27:326</id>
    <published>2007-09-01T01:40:23Z</published>
    <updated>2007-09-01T01:40:23Z</updated>
    <link href="http://source.mihelac.org/2007/1/11/capistrano-get-method-download-files-from-server" rel="alternate" type="text/html"/>
    <title>Comment on 'Capistrano get method - download files from server' by Tom</title>
<content type="html">&lt;p&gt;This is sweet.  I use this for production logs and my database backup files&lt;/p&gt;</content>  </entry>
</feed>
