module KnifeAttribute::Node::Helpers
Public Class Methods
attribute_type_map()
click to toggle source
# File lib/knife-attribute/node/helpers.rb, line 13 def self.attribute_type_map { default: :default_attrs, normal: :normal_attrs, override: :override_attrs, } end
default_attribute_type()
click to toggle source
# File lib/knife-attribute/node/helpers.rb, line 21 def self.default_attribute_type :normal end
included(base)
click to toggle source
# File lib/knife-attribute/node/helpers.rb, line 6 def self.included(base) base.class_eval do deps do require 'chef/node' require 'chef/json_compat' end def self.attribute_type_map { default: :default_attrs, normal: :normal_attrs, override: :override_attrs, } end def self.default_attribute_type :normal end end end
Public Instance Methods
entity_type()
click to toggle source
# File lib/knife-attribute/node/helpers.rb, line 31 def entity_type :node end
node()
click to toggle source
# File lib/knife-attribute/node/helpers.rb, line 27 def node @node ||= Chef::Node.load(entity_name) end