lib/rubocop/cop/chef/modernize/apt_default_recipe.rb in cookstyle-6.16.4 vs lib/rubocop/cop/chef/modernize/apt_default_recipe.rb in cookstyle-6.16.7
- old
+ new
@@ -34,9 +34,10 @@
extend TargetChefVersion
minimum_target_chef_version '12.7'
MSG = 'Do not include the Apt default recipe to update package cache. Instead use the apt_update resource, which is built into Chef Infra Client 12.7 and later.'
+ RESTRICT_ON_SEND = [:include_recipe].freeze
def_node_matcher :apt_recipe_usage?, <<-PATTERN
(send nil? :include_recipe (str {"apt" "apt::default"}))
PATTERN