Exception: Cute::Bash::StatusError

Inherits:
BashError
  • Object
show all
Defined in:
lib/cute/bash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, status, output) ⇒ StatusError

Returns a new instance of StatusError.



20
21
22
23
24
25
# File 'lib/cute/bash.rb', line 20

def initialize(cmd, status, output)
    super("'#{cmd}' returned with status = #{status}")
    @status = status
    @cmd = cmd
    @output = output
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



18
19
20
# File 'lib/cute/bash.rb', line 18

def output
  @output
end

#statusObject (readonly)

Returns the value of attribute status.



17
18
19
# File 'lib/cute/bash.rb', line 17

def status
  @status
end