public
Description: Remote multi-server automation tool
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
Search Repo:
Make sure Actor#get does not close the SFTP connection


git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@6151 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
jamis (author)
Thu Feb 15 07:46:19 -0800 2007
commit  13b3ad6d62ce68d315c0e40d066dcbbdd563104f
tree    6473df5f09a5a732648dcb1647d0f1e701ad9e4a
parent  16e3fa76355598030cde034f94200c3832c22f31
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *SVN*
0
 
0
+* Make sure Actor#get does not close the SFTP channel (so subsequent SFTP operations work) [Dov Murik]
0
+
0
 * Add :env option to 'run' (and friends) so that you can specify environment variables to be injected into the new process' environment [Mathieu Lajugie]
0
 
0
 
...
272
273
274
275
276
277
 
 
 
278
279
280
...
272
273
274
 
 
 
275
276
277
278
279
280
0
@@ -272,9 +272,9 @@ module Capistrano
0
       if Capistrano::SFTP && options.fetch(:sftp, true)
0
         execute_on_servers(options.merge(:once => true)) do |servers|
0
           logger.debug "downloading #{servers.first}:#{remote_path} to #{path}"
0
- sessions[servers.first].sftp.connect do |tsftp|
0
- tsftp.get_file remote_path, path
0
- end
0
+ sftp = sessions[servers.first].sftp
0
+ sftp.connect unless sftp.state == :open
0
+ sftp.get_file remote_path, path
0
           logger.trace "download finished"
0
         end
0
       else

Comments

    No one has commented yet.