Skip to main content

Chef/Modernize/MacOsXUserdefaults

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes14.0+

The mac_os_x_userdefaults resource was renamed to macos_userdefaults when it was added to Chef Infra Client 14.0. The new resource name should be used.

Examples

incorrect

mac_os_x_userdefaults 'full keyboard access to all controls' do
  domain 'AppleKeyboardUIMode'
  global true
  value '2'
end

correct

macos_userdefaults 'full keyboard access to all controls' do
  domain 'AppleKeyboardUIMode'
  global true
  value '2'
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.6.0String
Include
    Array

    Thank you for your feedback!

    ×










    Search Results