diff options
author | John Keiser <john@johnkeiser.com> | 2015-04-18 15:23:44 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-05-13 13:42:32 -0700 |
commit | a6d5241a96a7882166af849f529b2a2b8bab5ab4 (patch) | |
tree | f4a7c3735db3698d0712536d8cc58d5166ce0173 /lib/chef/mixin/provides.rb | |
parent | c46776d45cd5a732441a4dc0bf0552e71bb500ee (diff) | |
download | chef-a6d5241a96a7882166af849f529b2a2b8bab5ab4.tar.gz |
Deprecate automatic method_missing and Chef::Resource lookup
- Declare all resource DSL as methods on Chef::DSL::Resources
- Declare all definition DSL as methods on Chef::DSL::Definitions
Diffstat (limited to 'lib/chef/mixin/provides.rb')
-rw-r--r-- | lib/chef/mixin/provides.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/mixin/provides.rb b/lib/chef/mixin/provides.rb index bc25af62b2..d71097ca4b 100644 --- a/lib/chef/mixin/provides.rb +++ b/lib/chef/mixin/provides.rb @@ -23,7 +23,8 @@ class Chef node_map.set(short_name, true, opts, &block) end - # provides a node on the resource (early binding) + # Check whether this resource provides the resource_name DSL for the given + # node def provides?(node, resource_name) resource_name = resource_name.resource_name if resource_name.is_a?(Chef::Resource) node_map.get(node, resource_name) |