diff options
author | John Keiser <john@johnkeiser.com> | 2015-04-20 16:42:19 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-05-13 13:42:33 -0700 |
commit | a379de8207f33938abac36cf415e0d593aa24d59 (patch) | |
tree | a270f524453d36bd4f0f4a0add4866119396b72d /lib/chef/mixin | |
parent | 644342358dcd7202c24f731eae498db1ec46db3d (diff) | |
download | chef-a379de8207f33938abac36cf415e0d593aa24d59.tar.gz |
Add provides_nothing and let it override even Chef::Resource::X automatic names
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/provides.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/mixin/provides.rb b/lib/chef/mixin/provides.rb index cb643b9cfc..5062ef24dd 100644 --- a/lib/chef/mixin/provides.rb +++ b/lib/chef/mixin/provides.rb @@ -23,8 +23,8 @@ class Chef node_map.set(short_name, true, opts, &block) end - def does_not_provide(short_name) - node_map.delete(short_name) + def provides_nothing + node_map.clear end # Check whether this resource provides the resource_name DSL for the given |