summaryrefslogtreecommitdiff
path: root/lib/chef/chef_class.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-06-05 14:01:01 -0700
committerJohn Keiser <john@johnkeiser.com>2015-06-08 09:01:55 -0700
commitc65de79dbd662d895c8a10ef496d7eb9c69376c2 (patch)
treec0d171b5e87bd103660369a7497972e695379d1b /lib/chef/chef_class.rb
parent01f575ce28a55dcdc7b3945c5f49ebb652a1fff3 (diff)
downloadchef-c65de79dbd662d895c8a10ef496d7eb9c69376c2.tar.gz
Overwrite resource_name with provides
Diffstat (limited to 'lib/chef/chef_class.rb')
-rw-r--r--lib/chef/chef_class.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/chef/chef_class.rb b/lib/chef/chef_class.rb
index 1caeee4052..f1dd797c04 100644
--- a/lib/chef/chef_class.rb
+++ b/lib/chef/chef_class.rb
@@ -162,22 +162,14 @@ class Chef
@resource_priority_map = nil
end
- #
- # Removes a resource
- #
# @api private
- def delete_resource_priority_array(name, &filter)
- resource_priority_map.delete_priority_array(name, &filter)
- end
-
- private
-
def provider_priority_map
@provider_priority_map ||= begin
# these slurp in the resource+provider world, so be exceedingly lazy about requiring them
Chef::Platform::ProviderPriorityMap.instance
end
end
+ # @api private
def resource_priority_map
@resource_priority_map ||= begin
Chef::Platform::ResourcePriorityMap.instance