diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-23 16:47:45 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-25 09:29:29 -0700 |
commit | 69e92b100f4eccea6bf6f0953ffbc2e7f8b93b19 (patch) | |
tree | 95d04f36737b1075115b31ccb153a340b6a76928 /lib/chef/node/attribute_collections.rb | |
parent | f1ee3c3ad99a39bcecc631ce411378b60ec878f8 (diff) | |
download | chef-69e92b100f4eccea6bf6f0953ffbc2e7f8b93b19.tar.gz |
add code to implement node path tracking
via node.__path variable
using __underscore format because node["path"] could very
well be used and we still have to deal with node.path method_missing
horribleness.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node/attribute_collections.rb')
-rw-r--r-- | lib/chef/node/attribute_collections.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/node/attribute_collections.rb b/lib/chef/node/attribute_collections.rb index 1bd31bceb0..2f146a9528 100644 --- a/lib/chef/node/attribute_collections.rb +++ b/lib/chef/node/attribute_collections.rb @@ -17,6 +17,7 @@ # require "chef/node/common_api" +require "chef/node/mixin/path_tracking" class Chef class Node @@ -104,6 +105,12 @@ class Chef end end + # needed for PathTracking + def convert_key(key) + key + end + + prepend Chef::Node::Mixin::PathTracking end # == VividMash @@ -217,6 +224,7 @@ class Chef Mash.new(self) end + prepend Chef::Node::Mixin::PathTracking end end end |