Class: RuboCop::Cop::Chef::Deprecations::EasyInstallResource

Inherits:
Base
  • 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 Infra Client 13.

Examples:


### incorrect
easy_install "my_thing" do
  bar
end

Constant Summary collapse

MSG =
"Don't use the deprecated easy_install resource removed in Chef Infra Client 13"
RESTRICT_ON_SEND =
[:easy_install].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/easy_install.rb', line 35

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