Class: Ansible::Ruby::Modules::Git_config
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Git_config
- Defined in:
- lib/ansible/ruby/modules/generated/source_control/git_config.rb
Overview
The C(git_config) module changes git configuration by invoking ‘git config’. This is needed if you don’t want to use M(template) for the entire git config file (e.g. because you need to change just C(user.email) in /etc/.git/config). Solutions involving M(command) are cumbersome or don’t work correctly in check mode.
Instance Method Summary collapse
-
#list_all ⇒ :yes, ...
List all settings (optionally limited to a given I(scope)).
-
#name ⇒ String?
The name of the setting.
-
#repo ⇒ String?
Path to a git repository for reading and writing values from a specific repo.
-
#scope ⇒ :local, ...
Specify which scope to read/set values from.
-
#value ⇒ String?
When specifying the name of a single setting, supply a value to set that setting to the given value.
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
#list_all ⇒ :yes, ...
12 |
# File 'lib/ansible/ruby/modules/generated/source_control/git_config.rb', line 12 attribute :list_all |
#name ⇒ String?
16 |
# File 'lib/ansible/ruby/modules/generated/source_control/git_config.rb', line 16 attribute :name |
#repo ⇒ String?
20 |
# File 'lib/ansible/ruby/modules/generated/source_control/git_config.rb', line 20 attribute :repo |
#scope ⇒ :local, ...
24 |
# File 'lib/ansible/ruby/modules/generated/source_control/git_config.rb', line 24 attribute :scope |
#value ⇒ String?
28 |
# File 'lib/ansible/ruby/modules/generated/source_control/git_config.rb', line 28 attribute :value |