Skip to content

Commit

Permalink
Fix shell so that servers for a task are correctly discovered.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@6696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jamis committed May 8, 2007
1 parent 939dd24 commit b728004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,5 +1,7 @@
*SVN*

* Fix shell so that servers for a task are correctly discovered. [Jamis Buck]

* Added before(), after(), and on() callback creation methods. [Jamis Buck]

* Fix broken check! method for some deployment strategies. [Jamis Buck]
Expand Down
3 changes: 1 addition & 2 deletions lib/capistrano/shell.rb
Expand Up @@ -128,8 +128,7 @@ def help
# establish connections to them if necessary. Return the list of
# servers (names).
def connect(task)
# FIXME this is broken!
servers = task.servers(:refresh)
servers = configuration.find_servers_for_task(task)
needing_connections = servers.reject { |s| configuration.sessions.key?(s.host) }
unless needing_connections.empty?
puts "[establishing connection(s) to #{needing_connections.map { |s| s.host }.join(', ')}]"
Expand Down

0 comments on commit b728004

Please sign in to comment.