Method: Command::Base#step_finish
- Defined in:
- lib/command/base.rb
#step_finish(success, abort_on_error: true) ⇒ Object
503 504 505 506 507 508 509 510 |
# File 'lib/command/base.rb', line 503 def step_finish(success, abort_on_error: true) if success progress.puts(" #{Shell.color('done!', :green)}") else progress.puts(" #{Shell.color('failed!', :red)}\n\n#{Shell.read_from_tmp_stderr}\n\n") exit(ExitCode::ERROR_DEFAULT) if abort_on_error end end |