From bf45150b190afa90a69c4317b0a89c4f8ebd20fa Mon Sep 17 00:00:00 2001 From: John Keiser Date: Sun, 19 Apr 2015 09:45:45 -0700 Subject: Make explicit "provides" override automatic --- lib/chef/dsl/resources.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/chef/dsl') 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 -- cgit v1.2.1