Sha256: 99e8d8e7ce6b35e3981e473313922e71002f360399d9e2bb62ef208b4a1e4669

Contents?: true

Size: 755 Bytes

Versions: 29

Compression:

Stored size: 755 Bytes

Contents

require "chef/mixin/descendants_tracker"

class Chef
  module Mixin
    module Provides
      # @todo no longer needed, remove or deprecate?
      include Chef::Mixin::DescendantsTracker

      def provides(short_name, opts = {})
        raise NotImplementedError, :provides
      end

      # 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
      def provides?(node, resource)
        raise NotImplementedError, :provides?
      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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
chef-14.15.6 lib/chef/mixin/provides.rb
chef-14.15.6-universal-mingw32 lib/chef/mixin/provides.rb
chef-14.14.29 lib/chef/mixin/provides.rb
chef-14.14.29-universal-mingw32 lib/chef/mixin/provides.rb
chef-14.14.25-universal-mingw32 lib/chef/mixin/provides.rb
chef-14.14.25 lib/chef/mixin/provides.rb
chef-14.14.14-universal-mingw32 lib/chef/mixin/provides.rb
chef-14.14.14 lib/chef/mixin/provides.rb
chef-14.13.11 lib/chef/mixin/provides.rb
chef-14.12.9 lib/chef/mixin/provides.rb
chef-14.12.3 lib/chef/mixin/provides.rb
chef-14.11.21 lib/chef/mixin/provides.rb
chef-14.10.9 lib/chef/mixin/provides.rb
chef-14.9.13 lib/chef/mixin/provides.rb
chef-14.8.12 lib/chef/mixin/provides.rb
chef-14.7.17 lib/chef/mixin/provides.rb
chef-14.6.47 lib/chef/mixin/provides.rb
chef-14.5.33 lib/chef/mixin/provides.rb
chef-14.5.27 lib/chef/mixin/provides.rb
chef-14.5.27-universal-mingw32 lib/chef/mixin/provides.rb