Exception: RunnerExecution::RunnerExecutionRuntimeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/runner_execution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, command, output = nil) ⇒ RunnerExecutionRuntimeError

Returns a new instance of RunnerExecutionRuntimeError.



13
14
15
16
17
18
19
20
# File 'lib/runner_execution.rb', line 13

def initialize(status, command, output = nil)
  @status           = status
  @exitstatus       = status.exitstatus
  @command          = command
  @output           = output

  super "#{status.inspect}\n#{command.inspect}"
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



11
12
13
# File 'lib/runner_execution.rb', line 11

def command
  @command
end

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



11
12
13
# File 'lib/runner_execution.rb', line 11

def exitstatus
  @exitstatus
end

#outputObject (readonly)

Returns the value of attribute output.



11
12
13
# File 'lib/runner_execution.rb', line 11

def output
  @output
end

#statusObject (readonly)

Returns the value of attribute status.



11
12
13
# File 'lib/runner_execution.rb', line 11

def status
  @status
end