Exception: Kontena::Cli::Services::ExecCommand::ExecExit

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kontena/cli/services/exec_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_status, message = nil) ⇒ ExecExit

Returns a new instance of ExecExit.



16
17
18
19
# File 'lib/kontena/cli/services/exec_command.rb', line 16

def initialize(exit_status, message = nil)
  super(message)
  @exit_status = exit_status
end

Instance Attribute Details

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



14
15
16
# File 'lib/kontena/cli/services/exec_command.rb', line 14

def exit_status
  @exit_status
end