Sha256: 8b54dc3b40e699f0d652545fbe97201f39ac759899509c05299688a568ba6854

Contents?: true

Size: 753 Bytes

Versions: 194

Compression:

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

194 entries across 194 versions & 1 rubygems

Version Path
chef-18.1.29-x64-mingw-ucrt lib/chef/mixin/provides.rb
chef-16.18.30-universal-mingw32 lib/chef/mixin/provides.rb
chef-16.18.30 lib/chef/mixin/provides.rb
chef-18.1.0-x64-mingw-ucrt lib/chef/mixin/provides.rb
chef-18.1.0 lib/chef/mixin/provides.rb
chef-18.0.185-x64-mingw-ucrt lib/chef/mixin/provides.rb
chef-18.0.185 lib/chef/mixin/provides.rb
chef-18.0.169-x64-mingw-ucrt lib/chef/mixin/provides.rb
chef-18.0.169 lib/chef/mixin/provides.rb
chef-16.18.0-universal-mingw32 lib/chef/mixin/provides.rb
chef-16.18.0 lib/chef/mixin/provides.rb
chef-17.10.0-universal-mingw32 lib/chef/mixin/provides.rb
chef-17.10.0 lib/chef/mixin/provides.rb
chef-17.9.52-universal-mingw32 lib/chef/mixin/provides.rb
chef-17.9.52 lib/chef/mixin/provides.rb
chef-16.17.51-universal-mingw32 lib/chef/mixin/provides.rb
chef-16.17.51 lib/chef/mixin/provides.rb
chef-17.9.46-universal-mingw32 lib/chef/mixin/provides.rb
chef-17.9.46 lib/chef/mixin/provides.rb
chef-17.9.42-universal-mingw32 lib/chef/mixin/provides.rb