lib/ember_cli/runner.rb in ember-cli-rails-0.7.1 vs lib/ember_cli/runner.rb in ember-cli-rails-0.7.2

- old
+ new

@@ -7,22 +7,28 @@ @out = out @err = err @options = options end - def run!(command) + def run(command) output, status = Open3.capture2e(@env, command, @options) @out.write(output) + [output, status] + end + + def run!(command) + output, status = run(command) + unless status.success? @err.write <<-MSG.strip_heredoc ERROR: Failed command: `#{command}` OUTPUT: #{output} MSG - exit 1 + exit status.exitstatus end true end end