lib/makit/command_runner.rb in makit-0.0.11 vs lib/makit/command_runner.rb in makit-0.0.12
- old
+ new
@@ -74,11 +74,11 @@
puts Makit::CommandRunner.get_command_summary(command) + " (exit code #{command.exit_code})".colorize(:default)
puts " directory: #{command.directory}\n"
puts " duration: #{command.duration.seconds} seconds\n"
puts Makit::Humanize::indent_string(command.output, 2) if command.output.length > 0
puts Makit::Humanize::indent_string(command.error, 2) if command.error.length > 0
- exit 1 if command_request.exit_on_error
+ #exit 1 if command.exit_on_error
else
puts Makit::CommandRunner.get_command_summary(command) + " (#{command.duration.seconds} seconds)".colorize(:cyan)
puts Makit::Humanize::indent_string(command.output, 2).colorize(:default) if show_output_on_success
end
end
@@ -90,9 +90,10 @@
show_output = true
exit_on_error = true
log_to_artifacts(command) if @log_to_artifacts
show_command(command)
+ #exit 1 if exit_on_error & command.exit_code != 1
#if command.exit_code != 0
# puts Makit::CommandRunner.get_command_summary(command) + " (exit code #{command.exit_code})".colorize(:default)
# puts " directory: #{command.directory}\n"
# puts " duration: #{command.duration.seconds} seconds\n"
# puts Makit::Humanize::indent_string(command.output, 2) if command.output.length > 0