Skip to main content

RequireRecipe

All Cookstyle Cops


The department is: Chef/Deprecations

The full name of the cop is: Chef/Deprecations/RequireRecipe


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Make sure to use include_recipe instead of require_recipe

Examples

incorrect

require_recipe 'foo'

correct

include_recipe 'foo'

Configurable attributes

NameDefault valueConfigurable values
Version Added5.2.0String
Exclude
  • **/attributes/*.rb
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?