Chef/Correctness/InvalidNotificationTiming
The Cookstyle cops department: Chef/Correctness
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | No | All Versions |
Valid notification timings are :immediately, :immediate (alias for :immediately), :delayed, and :before.
Examples
incorrect
template '/etc/www/configures-apache.conf' do
notifies :restart, 'service[apache]', :nope
end
correct
template '/etc/www/configures-apache.conf' do
notifies :restart, 'service[apache]', :immediately
end
Configurable attributes
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 5.16.0 | String |
| Include | Array |