Class: RuboCop::Cop::Chef::ChefDeprecations::ErlCallResource

Inherits:
RuboCop::Cop
  • Object
show all
Defined in:
lib/rubocop/cop/chef/deprecation/erl_call.rb

Overview

Don’t use the deprecated erl_call resource

Examples:


# bad
erl_call "foo" do
  bar
end

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