Skip to main content

MetadataMissingName

All Cookstyle Cops


The department is: Chef/Correctness

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


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

metadata.rb needs to include the name method or it will fail on Chef Infra Client 12 and later.

Examples


#### correct

```ruby
name 'foo'

Configurable attributes

NameDefault valueConfigurable values
Version Added5.2.0String
Include
  • **/metadata.rb
Array

Was this page helpful?









Search Results