Sha256: 9370109d61fc2a1416cb0226f521557bb09d04e2feb9df79b24dd487717b573f

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Debian
    class OsArchitecture
      FACT_NAME = 'os.architecture'
      ALIASES = 'architecture'

      def call_the_resolver
        fact_value = Resolvers::Uname.resolve(:machine)
        fact_value = 'amd64' if fact_value == 'x86_64'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/debian/os/architecture.rb
facter-4.0.7.pre lib/facts/debian/os/architecture.rb