Exception: Giddyup::CommandWrapper::CommandFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/giddyup/command_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, output, command) ⇒ CommandFailed

Returns a new instance of CommandFailed.



15
16
17
18
19
20
# File 'lib/giddyup/command_wrapper.rb', line 15

def initialize(status, output, command)
  @status  = status
  @output  = output
  @command = command
  super("Command execution failed")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



13
14
15
# File 'lib/giddyup/command_wrapper.rb', line 13

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output.



13
14
15
# File 'lib/giddyup/command_wrapper.rb', line 13

def output
  @output
end

#statusObject (readonly)

Returns the value of attribute status.



13
14
15
# File 'lib/giddyup/command_wrapper.rb', line 13

def status
  @status
end