Class: Ansible::Ruby::Modules::Sorcery
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Sorcery
- Defined in:
- lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb
Overview
Manages “spells” on Source Mage GNU/Linux using I(sorcery) toolchain
Instance Method Summary collapse
-
#cache_valid_time ⇒ Integer?
Time in seconds to invalidate grimoire collection on update,especially useful for SCM and rsync grimoires,makes sense only in pair with C(update_cache).
-
#depends ⇒ Array<String>, ...
Comma-separated list of optional dependencies to build a spell (or make sure it is built) with; use /- in front of dependency to turn it on/off (‘’ is optional though),this option is ignored if C(name) parameter is equal to ‘*’ or contains more than one spell,providers must be supplied in the form recognized by Sorcery, e.g.
-
#name ⇒ String?
Name of the spell,multiple names can be given, separated by commas,special value ‘*’ in conjunction with states C(latest) or C(rebuild) will update or rebuild the whole system respectively.
-
#state ⇒ :present, ...
Whether to cast, dispel or rebuild a package,state C(cast) is an equivalent of C(present), not C(latest),state C(latest) always triggers C(update_cache=yes),state C(rebuild) implies cast of all specified spells, not only those existed before.
-
#update ⇒ :yes, ...
Whether or not to update sorcery scripts at the very first stage.
-
#update_cache ⇒ :yes, ...
Whether or not to update grimoire collection before casting spells.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#cache_valid_time ⇒ Integer?
Returns Time in seconds to invalidate grimoire collection on update,especially useful for SCM and rsync grimoires,makes sense only in pair with C(update_cache).
32 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 32 attribute :cache_valid_time |
#depends ⇒ Array<String>, ...
Returns Comma-separated list of optional dependencies to build a spell (or make sure it is built) with; use /- in front of dependency to turn it on/off (‘’ is optional though),this option is ignored if C(name) parameter is equal to ‘*’ or contains more than one spell,providers must be supplied in the form recognized by Sorcery, e.g. ‘openssl(SSL)’.
20 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 20 attribute :depends |
#name ⇒ String?
Returns Name of the spell,multiple names can be given, separated by commas,special value ‘*’ in conjunction with states C(latest) or C(rebuild) will update or rebuild the whole system respectively.
12 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 12 attribute :name |
#state ⇒ :present, ...
Returns Whether to cast, dispel or rebuild a package,state C(cast) is an equivalent of C(present), not C(latest),state C(latest) always triggers C(update_cache=yes),state C(rebuild) implies cast of all specified spells, not only those existed before.
16 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 16 attribute :state |
#update ⇒ :yes, ...
Returns Whether or not to update sorcery scripts at the very first stage.
24 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 24 attribute :update |
#update_cache ⇒ :yes, ...
Returns Whether or not to update grimoire collection before casting spells.
28 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/sorcery.rb', line 28 attribute :update_cache |