Exception: Hillary::Shellable::ExecutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hillary/shellable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, output, status) ⇒ ExecutionError

Returns a new instance of ExecutionError.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/hillary/shellable.rb', line 8

def initialize(command, output, status)
  message = "#{command}\n"\
            "#{output}\n"\
            "status: #{status}"

  super(message)

  @command = command
  @output = output
  @status = status
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



6
7
8
# File 'lib/hillary/shellable.rb', line 6

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output.



6
7
8
# File 'lib/hillary/shellable.rb', line 6

def output
  @output
end

#statusObject (readonly)

Returns the value of attribute status.



6
7
8
# File 'lib/hillary/shellable.rb', line 6

def status
  @status
end