Exception: Ndo::Host::ExecutionFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ndo/host.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, stdout = nil, stderr = nil) ⇒ ExecutionFailure

Returns a new instance of ExecutionFailure.



13
14
15
16
# File 'lib/ndo/host.rb', line 13

def initialize(message=nil, stdout=nil, stderr=nil)
  super(message)
  @stdout, @stderr = stdout, stderr
end

Instance Attribute Details

#stderrObject (readonly)

Returns the value of attribute stderr.



18
19
20
# File 'lib/ndo/host.rb', line 18

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



18
19
20
# File 'lib/ndo/host.rb', line 18

def stdout
  @stdout
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/ndo/host.rb', line 20

def to_s
  super + "\nstdout: #{stdout}\nstderr: #{stderr}"
end