Class: Facter::InternalFactManager
- Inherits:
-
Object
- Object
- Facter::InternalFactManager
- Defined in:
- lib/facter/framework/core/fact/internal/internal_fact_manager.rb
Instance Method Summary collapse
-
#resolve_facts(searched_facts) ⇒ Array<Facter::ResolvedFact>
private
resolves each SearchFact and filter out facts that do not match the given user query.
Instance Method Details
#resolve_facts(searched_facts) ⇒ Array<Facter::ResolvedFact>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
resolves each SearchFact and filter out facts that do not match the given user query
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/facter/framework/core/fact/internal/internal_fact_manager.rb', line 11 def resolve_facts(searched_facts) internal_searched_facts = filter_internal_facts(searched_facts) resolved_facts = if Options[:sequential] resolve_sequentially(internal_searched_facts) else resolve_in_parallel(internal_searched_facts) end resolved_facts.flatten! resolved_facts.compact! nil_resolved_facts = resolve_nil_facts(searched_facts) resolved_facts.concat(nil_resolved_facts) end |