mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #455 from gnufied/master
Fixes GH-434, If branches is an array of array, iterate them separately.
This commit is contained in:
commit
898005f2ef
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…
Reference in a new issue