Sha256: 669b713354759f2b8cb05d7c7be9d53bbf5709d9b77e45212bdc646658d637fe

Contents?: true

Size: 774 Bytes

Versions: 14

Compression:

Stored size: 774 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

14 entries across 14 versions & 1 rubygems

Version Path
chef-13.12.14-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.12.3-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.11.3-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.10.4-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.10.0-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.9.4-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.9.1-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.8.5-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.8.3-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.22.1 lib/chef/mixin/provides.rb
chef-12.22.1-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.8.0-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.8.1 lib/chef/mixin/provides.rb
chef-12.8.1-universal-mingw32 lib/chef/mixin/provides.rb