Class: Bolt::Node::Output
- Inherits:
-
Object
- Object
- Bolt::Node::Output
- Defined in:
- lib/bolt/node/output.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize ⇒ Output
constructor
A new instance of Output.
Constructor Details
#initialize ⇒ Output
Returns a new instance of Output.
10 11 12 13 14 |
# File 'lib/bolt/node/output.rb', line 10 def initialize @stdout = StringIO.new @stderr = StringIO.new @exit_code = 'unkown' end |
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code.
8 9 10 |
# File 'lib/bolt/node/output.rb', line 8 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
7 8 9 |
# File 'lib/bolt/node/output.rb', line 7 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
7 8 9 |
# File 'lib/bolt/node/output.rb', line 7 def stdout @stdout end |