Class: Lightchef::Node

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/lightchef/node.rb

Class Method Summary collapse

Class Method Details

.new_from_file(path) ⇒ Object



7
8
9
10
# File 'lib/lightchef/node.rb', line 7

def self.new_from_file(path)
  hash = JSON.parse(File.read(path))
  self.new(hash)
end