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 message
  logger.error message
  Kernel.exit false
end

#loggerObject



6
7
8
# File 'lib/rancher/shell/logger_helper.rb', line 6

def logger
  @logger ||= Logger.new
end