Exception: Process::Pipeline::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/process/pipeline/command_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step, status) ⇒ CommandError

Returns a new instance of CommandError.



24
25
26
27
28
29
# File 'lib/process/pipeline/command_error.rb', line 24

def initialize(step, status)
	@step = step
	@status = status
	
	super "Command #{step.command.inspect} exited with status #{@status.to_i}!"
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



32
33
34
# File 'lib/process/pipeline/command_error.rb', line 32

def status
  @status
end

#stepObject (readonly)

Returns the value of attribute step.



31
32
33
# File 'lib/process/pipeline/command_error.rb', line 31

def step
  @step
end