DeclareActionClass
The department is: Chef/Modernize
The full name of the cop is: Chef/Modernize/DeclareActionClass
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 |
Was this page helpful?