Module Facter::Util::Processor
In: lib/facter/util/processor.rb

Methods

Public Class methods

aix_processor_list is intended to generate a list of values for the processorX facts. The behavior is as follows from [11609](projects.puppetlabs.com/issues/11609)

  1. Take a list of all the processor identifiers for the platform, represented as system-native identifiers in strings.
  2. Sort the list
  3. Assign an incrementing from 0 integer index to each identifier.
  4. Store the value of the system identifier in the processorX fact where X is the incrementing index.

Returns an Array, sorted, containing the values for the facts.

hpux_processor_list is intended to generate a list of values for the processorX facts.

kernel_fact_value is intended to directly delegate to Facter.value(:kernel) to make it easier to stub the kernel fact without affecting the entire system.

lsattr is intended to directly delegate to Facter::Util::Resolution.exec in an effort to make the processorX facts easier to test. See also the {lsdev} method.

lsdev is intended to directly delegate to Facter::Util::Resolution.exec in an effort to make the processorX facts easier to test by stubbing only the behaviors we need to stub to get the output of the system command.

[Validate]