summaryrefslogtreecommitdiff
path: root/lib/chef/resource/macos_userdefaults.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-04 20:15:36 -0800
committerTim Smith <tsmith@chef.io>2018-03-04 20:19:03 -0800
commita96e2311e2bfb59b750ac11cb290cd17d02fef71 (patch)
treeb682d37033587c76ed645c829b3f6c861914cb1a /lib/chef/resource/macos_userdefaults.rb
parente0a14935df0c0dd34fdaa8d3228d5d83e4a7cfbd (diff)
downloadchef-a96e2311e2bfb59b750ac11cb290cd17d02fef71.tar.gz
Updates from the reviewmisc_resource
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/macos_userdefaults.rb')
-rw-r--r--lib/chef/resource/macos_userdefaults.rb24
1 files changed, 8 insertions, 16 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb
index 08badc4c84..45be356d1b 100644
--- a/lib/chef/resource/macos_userdefaults.rb
+++ b/lib/chef/resource/macos_userdefaults.rb
@@ -31,43 +31,35 @@ class Chef
" man page for details on how the tool works."
introduced "14.0"
- property :domain,
- String,
+ property :domain, String,
description: "The domain the defaults belong to.",
required: true
- property :global,
- [true, false],
+ property :global, [TrueClass, FalseClass],
description: "Whether the domain is global.",
default: false
- property :key,
- String,
+ property :key, String,
description: "The preference key."
- property :value,
- [Integer, Float, String, true, false, Hash, Array],
+ property :value, [Integer, Float, String, TrueClass, FalseClass, Hash, Array],
description: "The value of the key.",
coerce: proc { |v| coerce_booleans(v) },
required: true
- property :type,
- String,
+ property :type, String,
description: "Value type of the preference key.",
default: ""
- property :user,
- String,
+ property :user, String,
description: "User for which to set the default."
- property :sudo,
- [true, false],
+ property :sudo, [TrueClass, FalseClass],
description: "Set to true if the setting requires privileged access to modify.",
default: false,
desired_state: false
- property :is_set,
- [true, false],
+ property :is_set, [TrueClass, FalseClass],
description: "",
default: false,
desired_state: false