Sha256: 37b17a9dc2b35e5b326d59277604ac9fef3720e8ab927c77787cbfd3f1a10a28

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 Bytes

Contents

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

module Facter::Util::Architecture
  ##
  # 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.
  def self.lsattr(command="lsattr -El proc0 -a type")
    Facter::Util::Resolution.exec(command)
  end

  ##
  # 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.
  def self.kernel_fact_value
    Facter.value(:kernel)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facter-1.7.6 lib/facter/util/architecture.rb
facter-1.7.5 lib/facter/util/architecture.rb
facter-1.7.5.rc2 lib/facter/util/architecture.rb
facter-1.7.5.rc1 lib/facter/util/architecture.rb
facter-1.7.4 lib/facter/util/architecture.rb
facter-1.7.4.rc1 lib/facter/util/architecture.rb