diff options
author | rishichawda <rishichawda@users.noreply.github.com> | 2022-04-27 14:49:44 +0530 |
---|---|---|
committer | rishichawda <rishichawda@users.noreply.github.com> | 2022-05-26 14:39:03 +0530 |
commit | e057b2dd2fba34d20bd8d309231ca7a3881c1255 (patch) | |
tree | 01375e10bdbc4d2fc8af9e11f46027471c3c2201 | |
parent | ae0ce0b875255f638a7564f52e556e6ff5191953 (diff) | |
download | chef-backport-fix-for-macos-userdefaults-user-attr-bug.tar.gz |
update examples for userdefaultsbackport-fix-for-macos-userdefaults-user-attr-bug
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
-rw-r--r-- | lib/chef/resource/macos_userdefaults.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb index 6cbee1e6fa..4aec345edc 100644 --- a/lib/chef/resource/macos_userdefaults.rb +++ b/lib/chef/resource/macos_userdefaults.rb @@ -51,15 +51,17 @@ class Chef end ``` - **Specifying the type of a key to skip automatic type detection** + **Setting a value for specific user and hosts** ```ruby - macos_userdefaults 'Finder expanded save dialogs' do - key 'NSNavPanelExpandedStateForSaveMode' - value 'TRUE' - type 'bool' + macos_userdefaults 'Enable macOS firewall' do + key 'globalstate' + value 1 + user 'jane' + host :current end ``` + DOC property :domain, String, |