Sha256: 6331ea7626286dbed37a285df511ba3978284faa757374a512c69275ed92ba39

Contents?: true

Size: 620 Bytes

Versions: 121

Compression:

Stored size: 620 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::Core::Execution.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::Core::Execution.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

121 entries across 121 versions & 2 rubygems

Version Path
facter-2.1.0-x86-mingw32 lib/facter/util/architecture.rb
facter-2.1.0-x64-mingw32 lib/facter/util/architecture.rb
facter-2.1.0-universal-darwin lib/facter/util/architecture.rb
facter-2.0.2 lib/facter/util/architecture.rb
facter-2.0.2-x86-mingw32 lib/facter/util/architecture.rb
facter-2.0.2-universal-darwin lib/facter/util/architecture.rb
facter-2.0.1 lib/facter/util/architecture.rb
facter-2.0.1-x86-mingw32 lib/facter/util/architecture.rb
facter-2.0.1-universal-darwin lib/facter/util/architecture.rb
facter-2.0.1.rc4 lib/facter/util/architecture.rb
facter-2.0.1.rc4-x86-mingw32 lib/facter/util/architecture.rb
facter-2.0.1.rc4-universal-darwin lib/facter/util/architecture.rb
facter-2.0.1.rc3 lib/facter/util/architecture.rb
facter-2.0.1.rc3-x86-mingw32 lib/facter/util/architecture.rb
facter-2.0.1.rc3-universal-darwin lib/facter/util/architecture.rb
facter-2.0.1.rc2 lib/facter/util/architecture.rb
facter-2.0.1.rc2-x86-mingw32 lib/facter/util/architecture.rb
facter-2.0.1.rc2-universal-darwin lib/facter/util/architecture.rb
facter-2.0.1.rc1 lib/facter/util/architecture.rb
facter-2.0.1.rc1-x86-mingw32 lib/facter/util/architecture.rb