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

Fix shell so that servers for a task are correctly discovered.

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@6696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2007-05-08 04:17:48 +00:00
parent 74090e6efc
commit 7c4d877349
2 changed files with 3 additions and 2 deletions

View file

@ -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]

View file

@ -128,8 +128,7 @@ 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(', ')}]"