Method: Facter::FactCollection#build_fact_collection!
- Defined in:
- lib/facter/models/fact_collection.rb
#build_fact_collection!(facts) ⇒ FactCollection
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.
Transorms a list of ResolvedFact into a nested collection.
20 21 22 23 24 25 26 27 28 |
# File 'lib/facter/models/fact_collection.rb', line 20 def build_fact_collection!(facts) facts.each do |fact| next if %i[core legacy].include?(fact.type) && fact.value.nil? bury_fact(fact) end self end |