class Chef::Knife::StencilFile
Objects of this class represent the contents of your various stencil files
Attributes
inherits[RW]
matches[RW]
options[RW]
path[RW]
Public Class Methods
new(path, options={})
click to toggle source
# File lib/chef/knife/stencil_file.rb, line 32 def initialize(path, options={}) deserialized = JSON.parse(IO.read(path), :symbolize_names => true) @path = normalize_path(path, stencil_root) @options = deserialized[:options] || [] @inherits = deserialized[:inherits] || [] @matches = deserialized[:matches] || nil end