lib/rubocop/cop/chef/modernize/zipfile_resource.rb in cookstyle-5.15.7 vs lib/rubocop/cop/chef/modernize/zipfile_resource.rb in cookstyle-5.16.10
- old
+ new
@@ -28,9 +28,12 @@
# path 'C:\expand_here'
# end
#
class ZipfileResource < Cop
include RuboCop::Chef::CookbookHelpers
+ extend TargetChefVersion
+
+ minimum_target_chef_version '15.0'
MSG = 'Use the archive_file resource built into Chef Infra Client 15+ instead of the zipfile resource from the zipfile cookbook.'.freeze
def_node_matcher :depends_zipfile?, <<-PATTERN
(send nil? :depends (str "zipfile"))