Skip to main content

InvalidDefaultAction

All Cookstyle Cops


The department is: Chef/Correctness

The full name of the cop is: Chef/Correctness/InvalidDefaultAction


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

Default actions in resources should be symbols or an array of symbols.

Examples

incorrect

default_action 'create'

correct

default_action :create

Configurable attributes

NameDefault valueConfigurable values
Version Added6.13.0String
Include
  • **/libraries/*.rb
  • **/resources/*.rb
Array

Was this page helpful?









Search Results