lib/rubocop/cop/chef/modernize/zypper_repo.rb in cookstyle-5.15.7 vs lib/rubocop/cop/chef/modernize/zypper_repo.rb in cookstyle-5.16.10

- old
+ new

@@ -37,9 +37,13 @@ # type 'rpm-md' # priority '100' # end # class UsesZypperRepo < Cop + extend TargetChefVersion + + minimum_target_chef_version '13.3' + MSG = 'The zypper_repo resource was renamed zypper_repository when it was added to Chef Infra Client 13.3.'.freeze def on_send(node) add_offense(node, location: :expression, message: MSG, severity: :refactor) if node.method_name == :zypper_repo end