lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb in cookstyle-6.16.4 vs lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb in cookstyle-6.16.7

- old
+ new

@@ -59,9 +59,10 @@ # class LegacyNotifySyntax < Base extend AutoCorrector MSG = 'Use the new-style notification syntax which allows you to notify resources defined later in a recipe or resource.' + RESTRICT_ON_SEND = [:notifies, :subscribes].freeze def_node_matcher :legacy_notify?, <<-PATTERN (send nil? ${:notifies :subscribes} $(sym _) (send nil? :resources (hash (pair $(sym _) $(...) ) ) ) $... ) PATTERN