summaryrefslogtreecommitdiff
path: root/lib/chef/mixin
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-05-07 09:53:35 -0700
committerJohn Keiser <john@johnkeiser.com>2015-05-13 13:43:15 -0700
commit27c57238f1f2fddc7d03dad818a6b7ee78cbff96 (patch)
treebba0c04ced9a410ad5363c74e3a8462ee27e3d8c /lib/chef/mixin
parent2032c6776587f9450ddba182867973ab5bee1b75 (diff)
downloadchef-27c57238f1f2fddc7d03dad818a6b7ee78cbff96.tar.gz
Deprecate dsl_name (the "DSL name for this class" is no longer meaningful).
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r--lib/chef/mixin/provides.rb6
1 files changed, 6 insertions, 0 deletions
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