Skip to main content

MetadataMissingName

The department is: MetadataMissingName

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

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

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

Was this page helpful?

×









Search Results