Class: Facts::Linux::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/facts/linux/processor.rb

Constant Summary collapse

FACT_NAME =
'processor.*'
TYPE =
:legacy

Instance Method Summary collapse

Instance Method Details

#call_the_resolverObject



9
10
11
12
13
14
15
16
17
# File 'lib/facter/facts/linux/processor.rb', line 9

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