Class: Puppet::ResourceApi::Command::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/resource_api/command.rb

Overview

Small utility class to hold the ‘run()` results together

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResult

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_codeObject

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

#stderrObject

Returns the value of attribute stderr.



10
11
12
# File 'lib/puppet/resource_api/command.rb', line 10

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout.



10
11
12
# File 'lib/puppet/resource_api/command.rb', line 10

def stdout
  @stdout
end