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

Fixes parallel execution command logging, GH-434

branches when more than one is really an array of array and hence
must be treated as such.
This commit is contained in:
Hemant Kumar 2013-04-25 00:32:39 +05:30
parent 0d324f82b0
commit 86098593a9

View file

@ -178,7 +178,13 @@ module Capistrano
logger.debug "executing #{branches.first}" unless options[:silent]
else
logger.debug "executing multiple commands in parallel"
branches.each{ |branch| logger.trace "-> #{branch.to_s(true)}" }
branches.each {|maybe_branch|
if(maybe_branch.is_a?(Array))
maybe_branch.each {|branch| logger.trace "-> #{branch.to_s(true)}"}
else
logger.trace "-> #{maybe_branch.to_s(true)}"
end
}
end
else
raise ArgumentError, "attempt to execute without specifying a command"