Class: Puppet::Rails::InventoryNode

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

Instance Method Summary collapse

Instance Method Details

#facts_to_hashObject



38
39
40
41
42
# File 'lib/vendor/puppet/rails/inventory_node.rb', line 38

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