Skip to content

Commit

Permalink
Merge pull request ZopaPublic#17 from zopaUK/tool-executable
Browse files Browse the repository at this point in the history
execute_command output
  • Loading branch information
lukesmith committed Jan 25, 2012
2 parents bd905ee + 7891fd8 commit 44620da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bozo/runner.rb
Expand Up @@ -38,7 +38,10 @@ def environment
def execute_command(tool, args)
args.flatten!

puts " ./#{tool.to_s} #{args[1..-1].join(' ')}".color(:cyan).bright
executable = File.basename(args.first)
arguments = args[1..-1].join(' ')

puts " #{tool} - #{executable} #{arguments}".color(:cyan).bright

raise Bozo::ExecutionError.new(tool, args, $?.exitstatus) unless system args.join ' '
end
Expand Down

0 comments on commit 44620da

Please sign in to comment.