7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/facter/framework/core/fact/internal/internal_fact_manager.rb', line 7
def resolve_facts(searched_facts)
internal_searched_facts = filter_internal_facts(searched_facts)
resolved_facts = if Options[:sequential]
@@log.debug('Resolving facts sequentially')
resolve_sequentially(internal_searched_facts)
else
@@log.debug('Resolving fact in parallel')
threads = start_threads(internal_searched_facts)
join_threads(threads, internal_searched_facts)
end
nil_resolved_facts = resolve_nil_facts(searched_facts)
resolved_facts.concat(nil_resolved_facts)
end
|