Sha256: 496cdb87239e833ce1ddd9b0b37ac32ab82c99bbdad903fe2dbb5394926a43db

Contents?: true

Size: 746 Bytes

Versions: 88

Compression:

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

88 entries across 88 versions & 1 rubygems

Version Path
chef-13.6.0-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.6.0 lib/chef/mixin/provides.rb
chef-12.21.26 lib/chef/mixin/provides.rb
chef-12.21.26-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.21.20-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.21.20 lib/chef/mixin/provides.rb
chef-13.5.3-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.5.3 lib/chef/mixin/provides.rb
chef-12.21.14-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.21.14 lib/chef/mixin/provides.rb
chef-13.4.24-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.21.12-universal-mingw32 lib/chef/mixin/provides.rb
chef-12.21.12 lib/chef/mixin/provides.rb
chef-13.4.24 lib/chef/mixin/provides.rb
chef-13.4.19-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.4.19 lib/chef/mixin/provides.rb
chef-12.21.10 lib/chef/mixin/provides.rb
chef-12.21.10-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.3.42-universal-mingw32 lib/chef/mixin/provides.rb
chef-13.3.42 lib/chef/mixin/provides.rb