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:
parent
d23414a184
commit
929a016b4d
2 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
*0.11.0* *SVN*
|
*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)
|
* Make sure IO::TRUNC is specified for Net::SFTP uploads (#3510)
|
||||||
|
|
||||||
* Add branch support to CVS [jeremy@hinegardner.org] (#3596)
|
* Add branch support to CVS [jeremy@hinegardner.org] (#3596)
|
||||||
|
|
|
@ -326,6 +326,14 @@ module SwitchTower
|
||||||
self.class.default_io_proc
|
self.class.default_io_proc
|
||||||
end
|
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
|
def metaclass
|
||||||
class << self; self; end
|
class << self; self; end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue