From 86098593a9801b53207b9bca00b4c076096f32c9 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 25 Apr 2013 00:32:39 +0530 Subject: [PATCH] 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. --- lib/capistrano/configuration/actions/invocation.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/capistrano/configuration/actions/invocation.rb b/lib/capistrano/configuration/actions/invocation.rb index 76aeee4f..ab192b55 100644 --- a/lib/capistrano/configuration/actions/invocation.rb +++ b/lib/capistrano/configuration/actions/invocation.rb @@ -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"