Class: RuboCop::Cop::Chef::ChefDeprecations::EasyInstallResource

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

Overview

Don’t use the deprecated easy_install resource removed in Chef 13

Examples:


# bad
easy_install "my_thing" do
  bar
end

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