diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-13 17:10:06 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-13 17:10:06 -0800 |
commit | 5e6c78598bc08a5d934dc4356cedabe3200652a6 (patch) | |
tree | 440186c34cd680a0d80e31d04150e04da396d871 /lib/chef/node.rb | |
parent | 32bf6ef6d329aae0e4c8ea841e26124316186ef7 (diff) | |
download | chef-lcg/lazy-deep-merge.tar.gz |
quicksave: partial deep merge cache partially donelcg/lazy-deep-merge
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r-- | lib/chef/node.rb | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb index dbb7852586..0e73bfeea4 100644 --- a/lib/chef/node.rb +++ b/lib/chef/node.rb @@ -169,34 +169,26 @@ class Chef attributes.override end - def override_attrs - attributes.override + alias_method :override_attrs, :override + alias_method :default_attrs, :default + alias_method :normal_attrs, :normal + + def automatic_attrs + attributes.automatic end def override_attrs=(new_values) attributes.override = new_values end - def default_attrs - attributes.default - end - def default_attrs=(new_values) attributes.default = new_values end - def normal_attrs - attributes.normal - end - def normal_attrs=(new_values) attributes.normal = new_values end - def automatic_attrs - attributes.automatic - end - def automatic_attrs=(new_values) attributes.automatic = new_values end |