Exception: Ndo::Host::ExecutionFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Ndo::Host::ExecutionFailure
- Defined in:
- lib/ndo/host.rb
Instance Attribute Summary collapse
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(message = nil, stdout = nil, stderr = nil) ⇒ ExecutionFailure
constructor
A new instance of ExecutionFailure.
- #to_s ⇒ Object
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(=nil, stdout=nil, stderr=nil) super() @stdout, @stderr = stdout, stderr end |
Instance Attribute Details
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
18 19 20 |
# File 'lib/ndo/host.rb', line 18 def stderr @stderr end |
#stdout ⇒ Object (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_s ⇒ Object
20 21 22 |
# File 'lib/ndo/host.rb', line 20 def to_s super + "\nstdout: #{stdout}\nstderr: #{stderr}" end |