Class: Bolt::Node::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/bolt/node/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOutput

Returns a new instance of Output.



12
13
14
15
16
# File 'lib/bolt/node/output.rb', line 12

def initialize
  @stdout = StringIO.new
  @stderr = StringIO.new
  @exit_code = 'unknown'
end

Instance Attribute Details

#exit_codeObject

Returns the value of attribute exit_code.



10
11
12
# File 'lib/bolt/node/output.rb', line 10

def exit_code
  @exit_code
end

#stderrObject (readonly)

Returns the value of attribute stderr.



9
10
11
# File 'lib/bolt/node/output.rb', line 9

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



9
10
11
# File 'lib/bolt/node/output.rb', line 9

def stdout
  @stdout
end