From 27c57238f1f2fddc7d03dad818a6b7ee78cbff96 Mon Sep 17 00:00:00 2001 From: John Keiser Date: Thu, 7 May 2015 09:53:35 -0700 Subject: Deprecate dsl_name (the "DSL name for this class" is no longer meaningful). --- lib/chef/mixin/provides.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/chef/mixin/provides.rb') diff --git a/lib/chef/mixin/provides.rb b/lib/chef/mixin/provides.rb index d71097ca4b..c39c53a190 100644 --- a/lib/chef/mixin/provides.rb +++ b/lib/chef/mixin/provides.rb @@ -29,6 +29,12 @@ class Chef resource_name = resource_name.resource_name if resource_name.is_a?(Chef::Resource) node_map.get(node, resource_name) end + + # Get the list of recipe DSL this resource is responsible for on the given + # node. + def provided_as(node) + node_map.list(node) + end end end end -- cgit v1.2.1