module Chef::Mixin::Provides
Public Instance Methods
provided_as(node)
click to toggle source
Get the list of recipe DSL this resource is responsible for on the given node.
# File lib/chef/mixin/provides.rb, line 24 def provided_as(node) node_map.list(node) end
provides(short_name, opts = {})
click to toggle source
# File lib/chef/mixin/provides.rb, line 10 def provides(short_name, opts = {}) raise NotImplementedError, :provides end
provides?(node, resource)
click to toggle source
Check whether this resource provides the resource_name DSL for the given node. @todo remove this when we stop checking unregistered things. FIXME: yard with @yield
# File lib/chef/mixin/provides.rb, line 18 def provides?(node, resource) raise NotImplementedError, :provides? end