Sha256: d632eb91b4da8542d1b58082710ffbe550d34036401cb87a4cea7cf5855a2cd1

Contents?: true

Size: 428 Bytes

Versions: 48

Compression:

Stored size: 428 Bytes

Contents

# Fact: hardwareisa
#
# Purpose:
#   Returns hardware processor type.
#
# Resolution:
#   On Solaris, AIX, Linux and the BSDs simply uses the output of "uname -p"
#   On HP-UX, "uname -m" gives us the same information.
#
# Caveats:
#   Some linuxes return unknown to uname -p with relative ease.
#

Facter.add(:hardwareisa) do
  if Facter.value(:kernel) == 'HP-UX'
    setcode 'uname -m'
  else
    setcode 'uname -p'
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
facter-2.1.0 lib/facter/hardwareisa.rb
facter-2.1.0-x86-mingw32 lib/facter/hardwareisa.rb
facter-2.1.0-x64-mingw32 lib/facter/hardwareisa.rb
facter-2.1.0-universal-darwin lib/facter/hardwareisa.rb
facter-1.7.6 lib/facter/hardwareisa.rb
facter-2.0.2 lib/facter/hardwareisa.rb
facter-2.0.2-x86-mingw32 lib/facter/hardwareisa.rb
facter-2.0.2-universal-darwin lib/facter/hardwareisa.rb
facter-2.0.1 lib/facter/hardwareisa.rb
facter-2.0.1-x86-mingw32 lib/facter/hardwareisa.rb
facter-2.0.1-universal-darwin lib/facter/hardwareisa.rb
facter-2.0.1.rc4 lib/facter/hardwareisa.rb
facter-2.0.1.rc4-x86-mingw32 lib/facter/hardwareisa.rb
facter-2.0.1.rc4-universal-darwin lib/facter/hardwareisa.rb
facter-2.0.1.rc3 lib/facter/hardwareisa.rb
facter-2.0.1.rc3-x86-mingw32 lib/facter/hardwareisa.rb
facter-2.0.1.rc3-universal-darwin lib/facter/hardwareisa.rb
facter-2.0.1.rc2 lib/facter/hardwareisa.rb
facter-2.0.1.rc2-x86-mingw32 lib/facter/hardwareisa.rb
facter-2.0.1.rc2-universal-darwin lib/facter/hardwareisa.rb