Sha256: d7674647f640d019ce892bccaf1d6851b188c2d2b5fcb0bf4a8ce5b3848cfd02

Contents?: true

Size: 416 Bytes

Versions: 63

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    module Os
      class Hardware
        FACT_NAME = 'os.hardware'
        ALIASES = 'hardwaremodel'

        def call_the_resolver
          fact_value = Facter::Resolvers::Uname.resolve(:machine)

          [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)]
        end
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
facter-4.0.23 lib/facts/linux/os/hardware.rb
facter-4.0.22 lib/facts/linux/os/hardware.rb
facter-4.0.21 lib/facts/linux/os/hardware.rb