Exception: Appear::ExecutionFailure

Inherits:
Error
  • Object
show all
Defined in:
lib/appear/runner.rb

Overview

raised when a command we want to run fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, output) ⇒ ExecutionFailure

Returns a new instance of ExecutionFailure.



11
12
13
14
15
# File 'lib/appear/runner.rb', line 11

def initialize(command, output)
  @command = command
  @output = output
  super("Command #{command.inspect} failed with output #{output.inspect}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



10
11
12
# File 'lib/appear/runner.rb', line 10

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output.



10
11
12
# File 'lib/appear/runner.rb', line 10

def output
  @output
end