Sha256: 42a5e40fc55250e2269aabcbb52c1a78bf945d73705f6bd837704ae12b315662
Contents?: true
Size: 212 Bytes
Versions: 2
Compression:
Stored size: 212 Bytes
Contents
require 'lightchef' require 'hashie' require 'json' module Lightchef class Node < Hashie::Mash def self.new_from_file(path) hash = JSON.parse(File.read(path)) self.new(hash) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lightchef-0.0.2 | lib/lightchef/node.rb |
lightchef-0.0.1 | lib/lightchef/node.rb |