1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Add Actor#connect! method for working around lazy connection establishing

git-svn-id: http://svn.rubyonrails.org/rails/tools/switchtower@3601 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2006-02-18 04:40:48 +00:00
parent d23414a184
commit 929a016b4d
2 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,7 @@
*0.11.0* *SVN*
* Add Actor#connect! method for working around lazy connection establishing
* Make sure IO::TRUNC is specified for Net::SFTP uploads (#3510)
* Add branch support to CVS [jeremy@hinegardner.org] (#3596)

View file

@ -326,6 +326,14 @@ module SwitchTower
self.class.default_io_proc
end
# Used to force connections to be made to the current task's servers.
# Connections are normally made lazily in SwitchTower--you can use this
# to force them open before performing some operation that might be
# time-sensitive.
def connect!(options={})
execute_on_servers(options) { }
end
def metaclass
class << self; self; end
end