diff options
author | tyler-ball <tyleraball@gmail.com> | 2014-11-13 11:05:10 -0800 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-11-13 11:05:10 -0800 |
commit | 13fba4b26511382037efb9e36ce84eda1ba569e1 (patch) | |
tree | 5e3e2dd4094480815d174b08aaea510b3f5cf269 /lib/chef/node.rb | |
parent | f5b36609eeb85d060e61293678488490cd382ea1 (diff) | |
parent | 2f8a0e92db2244b9404472b8ecae52c373d758ea (diff) | |
download | chef-tball/audit-tests.tar.gz |
Merge branch 'audit-mode' into tball/audit-teststball/audit-tests
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r-- | lib/chef/node.rb | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb index 5f788af4d4..dbb7852586 100644 --- a/lib/chef/node.rb +++ b/lib/chef/node.rb @@ -42,6 +42,8 @@ class Chef extend Forwardable def_delegators :attributes, :keys, :each_key, :each_value, :key?, :has_key? + def_delegators :attributes, :rm, :rm_default, :rm_normal, :rm_override + def_delegators :attributes, :default!, :normal!, :override!, :force_default!, :force_override! attr_accessor :recipe_list, :run_state, :override_runlist @@ -146,13 +148,6 @@ class Chef attributes.default end - # Set a force default attribute. Intermediate mashes will be created by - # auto-vivify if necessary. - def default! - attributes.set_unless_value_present = false - attributes.default! - end - # Set a default attribute of this node, auto-vivifying any mashes that are # missing, but if the final value already exists, don't set it def default_unless @@ -167,13 +162,6 @@ class Chef attributes.override end - # Set a force override attribute. Intermediate mashes will be created by - # auto-vivify if needed. - def override! - attributes.set_unless_value_present = false - attributes.override! - end - # Set an override attribute of this node, auto-vivifying any mashes that # are missing, but if the final value already exists, don't set it def override_unless |