Skip to main content

LaunchdDeprecatedHashProperty

The department is: LaunchdDeprecatedHashProperty

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
Include
    Array

    Thank you for your feedback!

    ×









    Search Results