Class: Facts::Macosx::SystemProfiler::Cores
- Inherits:
-
Object
- Object
- Facts::Macosx::SystemProfiler::Cores
- Defined in:
- lib/facter/facts/macosx/system_profiler/cores.rb
Constant Summary collapse
- FACT_NAME =
'system_profiler.cores'
- ALIASES =
'sp_number_processors'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
10 11 12 13 |
# File 'lib/facter/facts/macosx/system_profiler/cores.rb', line 10 def call_the_resolver fact_value = Facter::Resolvers::Macosx::SystemProfiler.resolve(:total_number_of_cores) [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)] end |