Sha256: aecb7cbbe09dbda779bf6882b3642ad7496bf82992e756672c23bdeba8d74062

Contents?: true

Size: 450 Bytes

Versions: 6

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

module Facts
  module El
    class Processor
      FACT_NAME = 'processor.*'
      TYPE = :legacy

      def call_the_resolver
        arr = []
        processors = Facter::Resolvers::Linux::Processors.resolve(:models)

        (0...processors.count).each do |iterator|
          arr << Facter::ResolvedFact.new("processor#{iterator}", processors[iterator], :legacy)
        end
        arr
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facter-4.0.20 lib/facts/el/processor.rb
facter-4.0.19 lib/facts/el/processor.rb
facter-4.0.18 lib/facts/el/processor.rb
facter-4.0.17 lib/facts/el/processor.rb
facter-4.0.16 lib/facts/el/processor.rb
facter-4.0.15 lib/facts/el/processor.rb