Exception: RobotArmy::ShellCommandError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/robot-army.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, exitstatus, output) ⇒ ShellCommandError

Returns a new instance of ShellCommandError.



52
53
54
55
# File 'lib/robot-army.rb', line 52

def initialize(command, exitstatus, output)
  @command, @exitstatus, @output = command, exitstatus, output
  super "command failed with exit status #{exitstatus}: #{command}"
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



50
51
52
# File 'lib/robot-army.rb', line 50

def command
  @command
end

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



50
51
52
# File 'lib/robot-army.rb', line 50

def exitstatus
  @exitstatus
end

#outputObject (readonly)

Returns the value of attribute output.



50
51
52
# File 'lib/robot-army.rb', line 50

def output
  @output
end