Skip to main content

MacOsXUserdefaults

All Cookstyle Cops


The department is: Chef/Modernize

The full name of the cop is: Chef/Modernize/MacOsXUserdefaults


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
Exclude
  • **/metadata.rb
Array

Was this page helpful?