Class: RuboCop::Cop::Chef::Deprecations::DeprecatedPlatformMethods
- Defined in:
- lib/rubocop/cop/chef/deprecation/deprecated_platform_methods.rb
Overview
Use ‘provider_for_action` or provides instead of the deprecated `Chef::Platform` methods in resources, which were removed in Chef Infra Client 13.
Constant Summary collapse
- MSG =
'Use provider_for_action or provides instead of the deprecated Chef::Platform methods in resources, which were removed in Chef Infra Client 13.'
- RESTRICT_ON_SEND =
[:provider_for_resource, :find_provider, :find_provider_for_node, :set].freeze
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#on_send(node) ⇒ Object
52 53 54 55 56 |
# File 'lib/rubocop/cop/chef/deprecation/deprecated_platform_methods.rb', line 52 def on_send(node) platform_method?(node) do add_offense(node, severity: :warning) end end |