lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb in cookstyle-7.32.2 vs lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb in cookstyle-7.32.7

- old
+ new

@@ -21,11 +21,11 @@ module Deprecations # Use the new-style notification syntax which allows you to notify resources defined later in a recipe or resource. # # @example # - # #### incorrect + # ### incorrect # template '/etc/www/configures-apache.conf' do # notifies :restart, resources(service: 'apache') # end # # template '/etc/www/configures-apache.conf' do @@ -38,10 +38,10 @@ # # template '/etc/www/configures-apache.conf' do # subscribes :restart, resources(service: service_name_variable), :immediately # end # - # #### correct + # ### correct # template '/etc/www/configures-apache.conf' do # notifies :restart, 'service[apache]' # end # # template '/etc/www/configures-apache.conf' do