Class: Puppet::Util::Execution::ProcessOutput

Inherits:
String show all
Defined in:
lib/puppet/util/execution.rb

Overview

This is the full output from a process. The object itself (a String) is the stdout of the process.

Constant Summary

Constants inherited from String

String::ASCII_ENCODING, String::ZAML_ESCAPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from String

#to_ascii8bit, #to_zaml

Methods included from MonkeyPatches::Lines

#lines

Constructor Details

#initialize(value, exitstatus) ⇒ ProcessOutput

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ProcessOutput.



28
29
30
31
# File 'lib/puppet/util/execution.rb', line 28

def initialize(value,exitstatus)
  super(value)
  @exitstatus = exitstatus
end

Instance Attribute Details

#exitstatusInteger (readonly)

Returns The exit status of the process.

Returns:

  • (Integer)

    The exit status of the process



25
26
27
# File 'lib/puppet/util/execution.rb', line 25

def exitstatus
  @exitstatus
end