mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Allow execute_on_servers to be called without an active task again
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
7ae3dd9ff7
commit
ce1f4733f3
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Allow execute_on_servers to be called without a current task again [Jamis Buck]
|
||||
|
||||
* Put $stdout in sync mode, so that Net::SSH prompts are displayed [Jamis Buck]
|
||||
|
||||
* Make sure deploy:check aborts if it fails [Jamis Buck]
|
||||
|
|
|
@ -115,7 +115,7 @@ module Capistrano
|
|||
begin
|
||||
establish_connections_to(servers)
|
||||
rescue ConnectionError => error
|
||||
raise error unless task.continue_on_error?
|
||||
raise error unless task && task.continue_on_error?
|
||||
error.hosts.each do |h|
|
||||
servers.delete(h)
|
||||
failed!(h)
|
||||
|
@ -125,7 +125,7 @@ module Capistrano
|
|||
begin
|
||||
yield servers
|
||||
rescue RemoteError => error
|
||||
raise error unless task.continue_on_error?
|
||||
raise error unless task && task.continue_on_error?
|
||||
error.hosts.each { |h| failed!(h) }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue