lib/rspec-puppet/support.rb
# Facter currently supports lower case facts.  Bug FACT-777 has been submitted to support case sensitive
# facts.
Facter currently supports lower case facts.  Bug FACT-777 has been submitted to support case sensitive
facts.
Facter currently supports lower case facts . Bug FACT - 777 has been submitted to support case sensitive facts .
def munge_facts(facts)
      return facts.reduce({}) do | memo, (k, v)|
        memo.tap { |m| m[k.to_s.downcase] = munge_facts(v) }
      end if facts.is_a? Hash
      return facts.reduce([]) do |memo, v|
        memo << munge_facts(v); memo
      end if facts.is_a? Array
      facts
    end
def munge_facts ( facts ) return facts . reduce ( { } ) do | memo , ( k , v ) | memo . tap { | m | m [ k . to_s . downcase ] = munge_facts ( v ) } end if facts . is_a? Hash return facts . reduce ( [ ] ) do | memo , v | memo << munge_facts ( v ) ; memo end if facts . is_a? Array facts end
Facter currently supports lower case facts.
Facter currently supports lower case facts .
facts
<not_specific>