Class: RuboCop::Cop::Chef::ChefDeprecations::EasyInstallResource
- Inherits:
-
RuboCop::Cop
- Object
- RuboCop::Cop
- RuboCop::Cop::Chef::ChefDeprecations::EasyInstallResource
- Defined in:
- lib/rubocop/cop/chef/deprecation/easy_install.rb
Overview
Don’t use the deprecated easy_install resource removed in Chef 13
Constant Summary collapse
- MSG =
"Don't use the deprecated easy_install resource removed in Chef 13".freeze
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
34 35 36 |
# File 'lib/rubocop/cop/chef/deprecation/easy_install.rb', line 34 def on_send(node) add_offense(node, location: :expression, message: MSG, severity: :refactor) if node.method_name == :easy_install end |