Class: RuboCop::Cop::Chef::ChefDeprecations::ErlCallResource
- Inherits:
-
RuboCop::Cop
- Object
- RuboCop::Cop
- RuboCop::Cop::Chef::ChefDeprecations::ErlCallResource
- Defined in:
- lib/rubocop/cop/chef/deprecation/erl_call.rb
Overview
Don’t use the deprecated erl_call resource
Constant Summary collapse
- MSG =
"Don't use the deprecated erl_call 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/erl_call.rb', line 34 def on_send(node) add_offense(node, location: :expression, message: MSG, severity: :refactor) if node.method_name == :erl_call end |