Skip to main content

DslIncludeInResource

All Cookstyle Cops


The department is: Chef/Modernize

The full name of the cop is: Chef/Modernize/DslIncludeInResource


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Chef Infra Client 12.4+ includes the Chef::DSL::Recipe in the resource and provider classed by default so there is no need to include this DSL in your resources or providers.

Examples

incorrect

include Chef::DSL::Recipe
include Chef::DSL::IncludeRecipe

Configurable attributes

NameDefault valueConfigurable values
Version Added5.17.0String
Include
  • **/resources/*.rb
  • **/providers/*.rb
Array

Was this page helpful?