Exception: Puter::RunError

Inherits:
Exception
  • Object
show all
Defined in:
lib/puter/puterfile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, result) ⇒ RunError

Returns a new instance of RunError.



13
14
15
16
17
18
19
# File 'lib/puter/puterfile.rb', line 13

def initialize(message, result)
  super(message)
  @result = result
  @cmd = result[:cmd]
  @exit_status = result[:exit_status]
  @exit_signal = result[:exit_signal]
end

Instance Attribute Details

#cmdObject

Returns the value of attribute cmd.



9
10
11
# File 'lib/puter/puterfile.rb', line 9

def cmd
  @cmd
end

#exit_signalObject

Returns the value of attribute exit_signal.



11
12
13
# File 'lib/puter/puterfile.rb', line 11

def exit_signal
  @exit_signal
end

#exit_statusObject

Returns the value of attribute exit_status.



10
11
12
# File 'lib/puter/puterfile.rb', line 10

def exit_status
  @exit_status
end

#resultObject

Returns the value of attribute result.



8
9
10
# File 'lib/puter/puterfile.rb', line 8

def result
  @result
end