Skip to main content

LaunchdDeprecatedHashProperty

All Cookstyle Cops


The department is: Chef/Deprecations

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


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes12.19+

The launchd resource’s hash property was renamed to plist_hash in Chef Infra Client 13+ to avoid conflicts with Ruby’s hash class.

Examples

incorrect

launchd 'foo' do
  hash foo: 'bar'
end

correct

launchd 'foo' do
  plist_hash foo: 'bar'
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.5.0String
Exclude
  • **/metadata.rb
Array

Was this page helpful?









Search Results