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 default Supports autocorrection Target Chef Version
Enabled Yes All Versions

Make sure to use include_recipe instead of require_recipe

Examples

incorrect

require_recipe 'foo'

correct

include_recipe 'foo'

Configurable attributes

Name Default value Configurable values
Version Added 5.2.0 String
Exclude
  • **/attributes/*.rb
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?

×









Search Results