Class: Puppet::Rails::InventoryNode

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/puppet/rails/inventory_node.rb

Instance Method Summary collapse

Instance Method Details

#facts_to_hashObject



25
26
27
28
29
# File 'lib/puppet/rails/inventory_node.rb', line 25

def facts_to_hash
  facts.inject({}) do |fact_hash,fact|
    fact_hash.merge(fact.name => fact.value)
  end
end