Skip to content

Commit

Permalink
Allow execute_on_servers to be called without an active task again
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jamis committed Jul 10, 2007
1 parent 36ced55 commit d5708d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 2 additions & 2 deletions lib/capistrano/configuration/connections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def execute_on_servers(options={})
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)
Expand All @@ -125,7 +125,7 @@ def execute_on_servers(options={})
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
Expand Down

0 comments on commit d5708d7

Please sign in to comment.