Exception: Cotta::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cotta/impl/command_error.rb

Overview

Error class that will be thrown if a system command exit with an error code

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(proc_status, output) ⇒ CommandError

Returns a new instance of CommandError.



8
9
10
11
# File 'lib/cotta/impl/command_error.rb', line 8

def initialize(proc_status, output)
  @proc_status = proc_status
  @output = output
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



6
7
8
# File 'lib/cotta/impl/command_error.rb', line 6

def output
  @output
end

#proc_statusObject (readonly)

Returns the value of attribute proc_status.



6
7
8
# File 'lib/cotta/impl/command_error.rb', line 6

def proc_status
  @proc_status
end