Class: Ansible::Ruby::Modules::Ini_file
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ini_file
- Defined in:
- lib/ansible/ruby/modules/generated/core/files/ini_file.rb
Instance Method Summary collapse
-
#backup ⇒ :yes, ...
Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
-
#dest ⇒ String
Path to the INI-style file; this file is created if required.
-
#no_extra_spaces ⇒ Boolean?
Do not insert spaces before and after ‘=’ symbol.
-
#option ⇒ String?
If set (required for changing a I(value)), this is the name of the option.,May be omitted if adding/removing a whole I(section).
-
#others ⇒ Object?
All arguments accepted by the M(file) module also work here.
-
#section ⇒ String
Section name in INI file.
-
#state ⇒ :present, ...
If set to C(absent) the option or section will be removed if present instead of created.
-
#value ⇒ String?
The string value to be associated with an I(option).
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#backup ⇒ :yes, ...
Returns Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
26 |
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 26 attribute :backup |
#dest ⇒ String
Returns Path to the INI-style file; this file is created if required.
10 |
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 10 attribute :dest |
#no_extra_spaces ⇒ Boolean?
Returns do not insert spaces before and after ‘=’ symbol.
37 |
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 37 attribute :no_extra_spaces |
#option ⇒ String?
Returns if set (required for changing a I(value)), this is the name of the option.,May be omitted if adding/removing a whole I(section).
18 |
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 18 attribute :option |
#others ⇒ Object?
Returns all arguments accepted by the M(file) module also work here.
30 |
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 30 attribute :others |
#section ⇒ String
Returns Section name in INI file. This is added if C(state=present) automatically when a single value is being set.
14 |
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 14 attribute :section |
#state ⇒ :present, ...
Returns If set to C(absent) the option or section will be removed if present instead of created.
33 |
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 33 attribute :state |
#value ⇒ String?
Returns the string value to be associated with an I(option). May be omitted when removing an I(option).
22 |
# File 'lib/ansible/ruby/modules/generated/core/files/ini_file.rb', line 22 attribute :value |