Class: Facts::Aix::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/facts/aix/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/aix/processor.rb', line 9

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

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