Chef/Modernize/ActionMethodInResource
The Cookstyle cops department: Chef/Modernize
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | All Versions |
Use the custom resource language’s action :my_action
blocks instead of creating actions with methods.
Examples
incorrect
def action_create
# :create action code here
end
correct
action :create do
# :create action code here
end
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 6.13.0 | String |
Include |
| Array |