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:
parent
0d324f82b0
commit
86098593a9
1 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue