lib/custom_facts/util/collection.rb
def custom_facts
        return @custom_facts if @valid_custom_facts

        @valid_custom_facts = true

        internal_loader.load_all unless @loaded
        @loaded = true

        custom_facts = @facts.select { |_k, v| v.options[:fact_type] == :custom }
        @custom_facts = Facter::Utils.deep_copy(custom_facts.keys)
      end
# Builds a hash of custom facts
Builds a hash of custom facts
Builds a hash of custom facts
def custom_facts
        return @custom_facts if @valid_custom_facts
        @valid_custom_facts = true
        internal_loader.load_all unless @loaded
        @loaded = true
        custom_facts = @facts.select { |_k, v| v.options[:fact_type] == :custom }
        @custom_facts = Facter::Utils.deep_copy(custom_facts.keys)
      end
def custom_facts return @custom_facts if @valid_custom_facts @valid_custom_facts = true internal_loader . load_all unless @loaded @loaded = true custom_facts = @facts . select { | _k , v | v . options [ :fact_type ] == :custom } @custom_facts = Facter :: Utils . deep_copy ( custom_facts . keys ) end
Builds a hash of custom facts
Builds a hash of custom facts