Class: Puppet::ResourceApi::Command::Result
- Inherits:
-
Object
- Object
- Puppet::ResourceApi::Command::Result
- Defined in:
- lib/puppet/resource_api/command.rb
Overview
Small utility class to hold the ‘run()` results together
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize ⇒ Result
Returns a new instance of Result.
11 12 13 14 |
# File 'lib/puppet/resource_api/command.rb', line 11 def initialize @stdout = '' @stderr = '' end |
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code.
10 11 12 |
# File 'lib/puppet/resource_api/command.rb', line 10 def exit_code @exit_code end |
#stderr ⇒ Object
Returns the value of attribute stderr.
10 11 12 |
# File 'lib/puppet/resource_api/command.rb', line 10 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout.
10 11 12 |
# File 'lib/puppet/resource_api/command.rb', line 10 def stdout @stdout end |