Sha256: f096783a4355a9a6b262fe549df88f90d31c8d358ae537b3c99d77a5f7583a14

Contents?: true

Size: 720 Bytes

Versions: 15

Compression:

Stored size: 720 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={}, &block)
        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.
      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

15 entries across 15 versions & 1 rubygems

Version Path
chef-12.6.0 lib/chef/mixin/provides.rb
chef-12.6.0-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.5.1-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.5.1 lib/chef/mixin/provides.rb
chef-12.4.3-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.4.3 lib/chef/mixin/provides.rb
chef-12.4.2-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.4.2 lib/chef/mixin/provides.rb
chef-12.5.0.alpha.1 lib/chef/mixin/provides.rb
chef-12.4.1-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.4.1 lib/chef/mixin/provides.rb
chef-12.4.0 lib/chef/mixin/provides.rb
chef-12.4.0-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.4.0.rc.2 lib/chef/mixin/provides.rb
chef-12.4.0.rc.2-universal-mingw32 lib/chef/mixin/provides.rb