Exception: TinyCI::Subprocesses::SubprocessError

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

Overview

An error raised when any of the TinyCI::Subprocesses methods fail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, command, status, message = "`#{label || command}` failed with code #{status.to_i}") ⇒ SubprocessError

Returns a new instance of SubprocessError.



92
93
94
95
96
# File 'lib/tinyci/subprocesses.rb', line 92

def initialize(label, command, status, message = "`#{label || command}` failed with code #{status.to_i}")
  @status = status
  @command = command
  super(message)
end

Instance Attribute Details

#commandString (readonly)

The command used to spawn the process

Returns:

  • (String)

    the current value of command



88
89
90
# File 'lib/tinyci/subprocesses.rb', line 88

def command
  @command
end

#statusInteger (readonly)

The return code of the process

Returns:

  • (Integer)

    the current value of status



88
89
90
# File 'lib/tinyci/subprocesses.rb', line 88

def status
  @status
end