diff options
author | John Keiser <john@johnkeiser.com> | 2015-04-19 09:45:45 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-05-13 13:42:32 -0700 |
commit | bf45150b190afa90a69c4317b0a89c4f8ebd20fa (patch) | |
tree | d07989e3e0eefc678da0112f2e7426227ad76343 /lib/chef/dsl | |
parent | a6d5241a96a7882166af849f529b2a2b8bab5ab4 (diff) | |
download | chef-bf45150b190afa90a69c4317b0a89c4f8ebd20fa.tar.gz |
Make explicit "provides" override automatic
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r-- | lib/chef/dsl/resources.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/dsl/resources.rb b/lib/chef/dsl/resources.rb index dfa0788879..482b14e3aa 100644 --- a/lib/chef/dsl/resources.rb +++ b/lib/chef/dsl/resources.rb @@ -14,6 +14,9 @@ class Chef end EOM end + def self.remove_resource_dsl(dsl_name) + remove_method dsl_name if method_defined?(dsl_name) + end end end end |