Module: Facter::Util::Architecture

Defined in:
lib/facter/util/architecture.rb

Overview

A module to help test architecture facts on non-AIX test hardware

Class Method Summary collapse

Class Method Details

.kernel_fact_valueObject

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.



16
17
18
# File 'lib/facter/util/architecture.rb', line 16

def self.kernel_fact_value
  Facter.value(:kernel)
end

.lsattr(command = "lsattr -El proc0 -a type") ⇒ Object

lsattr is intended to directly delegate to Facter::Core::Execution.exec in an effort to make the processorX facts easier to test. See also the lsdev method.



8
9
10
# File 'lib/facter/util/architecture.rb', line 8

def self.lsattr(command="lsattr -El proc0 -a type")
  Facter::Core::Execution.exec(command)
end