Class: Ansible::Ruby::Modules::Osx_defaults
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Osx_defaults
- Defined in:
- lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb
Overview
osx_defaults allows users to read, write, and delete Mac OS X user defaults from Ansible scripts. Mac OS X applications and other programs use the defaults system to record user preferences and other information that must be maintained when the applications aren’t running (such as default font for new documents, or the position of an Info panel).
Instance Method Summary collapse
-
#array_add ⇒ Boolean?
Add new elements to the array for a key which has an array as its value.
-
#domain ⇒ String?
The domain is a domain name of the form com.companyname.appname.
-
#host ⇒ String?
The host on which the preference should apply.
-
#key ⇒ String
The key of the user preference.
-
#state ⇒ :present, ...
The state of the user defaults.
-
#type ⇒ :array, ...
The type of value to write.
-
#value ⇒ Array<String>, ...
The value to write.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#array_add ⇒ Boolean?
Returns Add new elements to the array for a key which has an array as its value.
27 |
# File 'lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb', line 27 attribute :array_add |
#domain ⇒ String?
Returns The domain is a domain name of the form com.companyname.appname.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb', line 11 attribute :domain |
#host ⇒ String?
Returns The host on which the preference should apply. The special value “currentHost” corresponds to the “-currentHost” switch of the defaults commandline tool.
15 |
# File 'lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb', line 15 attribute :host |
#key ⇒ String
Returns The key of the user preference.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb', line 19 attribute :key |
#state ⇒ :present, ...
Returns The state of the user defaults.
35 |
# File 'lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb', line 35 attribute :state |
#type ⇒ :array, ...
Returns The type of value to write.
23 |
# File 'lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb', line 23 attribute :type |
#value ⇒ Array<String>, ...
Returns The value to write. Only required when state = present.
31 |
# File 'lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb', line 31 attribute :value |