Class: RuboCop::Cop::Chef::Deprecations::ErlCallResource

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

Overview

Don’t use the deprecated ‘erl_call` resource removed in Chef Infra Client 13.“

Examples:


### incorrect
erl_call "foo" do
  bar
end

Constant Summary collapse

MSG =
"Don't use the deprecated erl_call resource removed in Chef Infra Client 13"
RESTRICT_ON_SEND =
[:erl_call].freeze

Instance Method Summary collapse

Methods inherited from Base

#target_chef_version

Instance Method Details

#on_send(node) ⇒ Object



35
36
37
# File 'lib/rubocop/cop/chef/deprecation/erl_call.rb', line 35

def on_send(node)
  add_offense(node, severity: :warning)
end