Skip to main content

ImmediateNotificationTiming

The department is: ImmediateNotificationTiming

The full name of the cop is: Chef/Style/ImmediateNotificationTiming

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Use :immediately instead of :immediate for resource notification timing.

Examples

incorrect


template '/etc/www/configures-apache.conf' do
  notifies :restart, 'service[apache]', :immediate
end

correct


template '/etc/www/configures-apache.conf' do
  notifies :restart, 'service[apache]', :immediately
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.16.0String
Include
    Array

    Thank you for your feedback!

    ×









    Search Results