class RuboCop::Cop::Chef::Modernize::ZipfileResource
Use the archive_file resource built into Chef
Infra Client 15+ instead of the zipfile resource from the zipfile cookbook.
@example
#### incorrect zipfile "C:\file.zip" do path 'C:\expand_here' end
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_block(node)
click to toggle source
# File lib/rubocop/cop/chef/modernize/zipfile_resource.rb, line 50 def on_block(node) match_resource_type?(:zipfile, node) do add_offense(node, severity: :refactor) end end
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/modernize/zipfile_resource.rb, line 44 def on_send(node) depends_zipfile?(node) do add_offense(node, severity: :refactor) end end