lib/octofacts/facts.rb
# To fact hash. (This method is intended to be called by developers.)
#
# This loads the fact file and downcases, symbolizes, and otherwise manipulates the keys.
# This is very similar to 'to_hash' except that it returns symbolized keys.
# The output is suitable for consumption by rspec-puppet (note that rspec-puppet will
# de-symbolize all the keys in the hash object though).
To fact hash. (This method is intended to be called by developers.)
This loads the fact file and downcases, symbolizes, and otherwise manipulates the keys.
This is very similar to 'to_hash' except that it returns symbolized keys.
The output is suitable for consumption by rspec-puppet (note that rspec-puppet will
de-symbolize all the keys in the hash object though).
To fact hash . ( This method is intended to be called by developers . ) This loads the fact file and downcases symbolizes and otherwise manipulates the keys . This is very similar to ' to_hash ' except that it returns symbolized keys . The output is suitable for consumption by rspec - puppet ( note that rspec - puppet will de - symbolize all the keys in the hash object though ) .
def facts
      @facts ||= begin
        f = @backend.facts
        downcase_keys!(f) if @downcase_keys
        symbolize_keys!(f)
        f
      end
    end
def facts @facts ||= begin f = @backend . facts downcase_keys! ( f ) if @downcase_keys symbolize_keys! ( f ) f end end
To fact hash.
To fact hash .