Skip to main content

Chef/Modernize/DeclareActionClass

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes12.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

NameDefault valueConfigurable values
Version Added7.26.0String
Include
  • **/resources/*.rb
  • **/libraries/*.rb
Array

Thank you for your feedback!

×










Search Results