ClassEvalActionClass
The department is: ClassEvalActionClass
The full name of the cop is: Chef/Modernize/ClassEvalActionClass
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 |