Chef/Modernize/IfProvidesDefaultAction
The Cookstyle cops department: Chef/Modernize
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | All Versions |
if defined?(default_action) is no longer necessary in Chef Resources as default_action shipped in Chef 10.8.
Examples
incorrect
default_action :foo if defined?(default_action)
correct
default_action :foo
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 5.12.0 | String |
Include |
| Array |