Module: Rancher::Shell::LoggerHelper
- Included in:
- Commands::Exec, WebsocketClient
- Defined in:
- lib/rancher/shell/logger_helper.rb
Instance Method Summary collapse
Instance Method Details
#exit_with_error(message) ⇒ Object
10 11 12 13 |
# File 'lib/rancher/shell/logger_helper.rb', line 10 def exit_with_error logger.error Kernel.exit false end |
#logger ⇒ Object
6 7 8 |
# File 'lib/rancher/shell/logger_helper.rb', line 6 def logger @logger ||= Logger.new end |