Skip to main content

LaunchdDeprecatedHashProperty

The department is: LaunchdDeprecatedHashProperty

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

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

Name Default value Configurable values
Version Added 5.5.0 String
Include
Array

Was this page helpful?

×









Search Results