1
0
Fork 0
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:
Lee Hambley 2013-04-24 23:26:22 -07:00
commit 898005f2ef

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"