Sha256: 6e552ed478bdac619d724a5ac5cac011dac1a9222fad9190a07015fe6fccf719

Contents?: true

Size: 782 Bytes

Versions: 3

Compression:

Stored size: 782 Bytes

Contents

require_relative "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

3 entries across 3 versions & 1 rubygems

Version Path
chef-15.0.300-universal-mingw32 lib/chef/mixin/provides.rb
chef-15.0.298-universal-mingw32 lib/chef/mixin/provides.rb
chef-15.0.293-universal-mingw32 lib/chef/mixin/provides.rb