Class: RuboCop::Cop::Chef::ChefModernize::WindowsZipfileUsage
- Inherits:
-
RuboCop::Cop
- Object
- RuboCop::Cop
- RuboCop::Cop::Chef::ChefModernize::WindowsZipfileUsage
- Defined in:
- lib/rubocop/cop/chef/modernize/windows_zipfile.rb
Overview
Use the archive_file resource built into Chef Infra Client 15+ instead of the windows_zipfile from the Windows cookbook
Constant Summary collapse
- MSG =
'Use the archive_file resource built into Chef Infra Client 15+ instead of the windows_zipfile from the Windows cookbook'.freeze
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
33 34 35 |
# File 'lib/rubocop/cop/chef/modernize/windows_zipfile.rb', line 33 def on_send(node) add_offense(node, location: :expression, message: MSG, severity: :refactor) if node.method_name == :windows_zipfile end |