lib/mina/commands.rb in mina-1.0.0.beta2 vs lib/mina/commands.rb in mina-1.0.0.beta3

- old
+ new

@@ -29,19 +29,20 @@ queue.delete(stage) || [] end def process(path = nil) if path - queue[stage].unshift("echo '$ cd #{path}'") if fetch(:verbose) - "(cd #{path} && #{queue[stage].join(' && ')})" + queue[stage].unshift(%(echo "$ cd #{path}")) if fetch(:verbose) + %((cd #{path} && #{queue[stage].join(' && ')})) else queue[stage].join("\n") end end def run(backend) report_time do - Mina::Runner.new(process, backend).run + status = Mina::Runner.new(process, backend).run + error! 'Run Error' unless status end end end end