Chef/Modernize/ClassEvalActionClass
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 it is no longer necessary to call the class_eval method on the action class block.
Examples
incorrect
action_class.class_eval do
foo
end
correct
action_class do
foo
end
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 7.23.0 | String |
Include |
| Array |