class RuboCop::Cop::Chef::Deprecations::ResourceUsesProviderBaseMethod

The Resource.provider_base allows the developer to specify within a resource a module to load the resource’s provider from. Instead, the provider should call provides to register itself, or the resource should call provider to specify the provider to use.

@example

#### incorrect
provider_base ::Chef::Provider::SomethingSomething

Constants

MSG
RESTRICT_ON_SEND

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/chef/deprecation/resource_uses_provider_base_method.rb, line 33
def on_send(node)
  add_offense(node, severity: :warning)
end