Chef/Modernize/DeclareActionClass
The Cookstyle cops department: Chef/Modernize
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | 12.9+ |
In Chef Infra Client 12.9 and later action_class
can be used instead of declare_action_class
.
Examples
incorrect
declare_action_class do
foo
end
correct
action_class do
foo
end
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 7.26.0 | String |
Include |
| Array |