Sha256: 8f7fb473fc6c82787cafe9064a38aee2680bb1b7af0c7978c130d0153f7a518c

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Sles
    module Processors
      class Count
        FACT_NAME = 'processors.count'
        ALIASES = 'processorcount'

        def call_the_resolver
          fact_value = Facter::Resolvers::Linux::Processors.resolve(:processors)
          [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)]
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
facter-4.0.20 lib/facts/sles/processors/count.rb
facter-4.0.19 lib/facts/sles/processors/count.rb
facter-4.0.18 lib/facts/sles/processors/count.rb
facter-4.0.17 lib/facts/sles/processors/count.rb
facter-4.0.16 lib/facts/sles/processors/count.rb
facter-4.0.15 lib/facts/sles/processors/count.rb
facter-4.0.14 lib/facts/sles/processors/count.rb
facter-4.0.13 lib/facts/sles/processors/count.rb