Class: Ansible::Ruby::Modules::Hg

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/source_control/hg.rb

Overview

Manages Mercurial (hg) repositories. Supports SSH, HTTP/S and local address.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#destString

Returns Absolute path of where the repository should be cloned to.

Returns:

  • (String)

    Absolute path of where the repository should be cloned to.



15
# File 'lib/ansible/ruby/modules/generated/core/source_control/hg.rb', line 15

attribute :dest

#executableObject?

Returns Path to hg executable to use. If not supplied, the normal mechanism for resolving binary paths will be used.

Returns:

  • (Object, nil)

    Path to hg executable to use. If not supplied, the normal mechanism for resolving binary paths will be used.



35
# File 'lib/ansible/ruby/modules/generated/core/source_control/hg.rb', line 35

attribute :executable

#force:yes, ...

Returns Discards uncommitted changes. Runs C(hg update -C). Prior to 1.9, the default was ‘yes`.

Returns:

  • (:yes, :no, nil)

    Discards uncommitted changes. Runs C(hg update -C). Prior to 1.9, the default was ‘yes`.



23
# File 'lib/ansible/ruby/modules/generated/core/source_control/hg.rb', line 23

attribute :force

#purge:yes, ...

Returns Deletes untracked files. Runs C(hg purge).

Returns:

  • (:yes, :no, nil)

    Deletes untracked files. Runs C(hg purge).



27
# File 'lib/ansible/ruby/modules/generated/core/source_control/hg.rb', line 27

attribute :purge

#repoString

Returns The repository address.

Returns:

  • (String)

    The repository address.



11
# File 'lib/ansible/ruby/modules/generated/core/source_control/hg.rb', line 11

attribute :repo

#revisionString?

Returns Equivalent C(-r) option in hg command which could be the changeset, revision number, branch name or even tag.

Returns:

  • (String, nil)

    Equivalent C(-r) option in hg command which could be the changeset, revision number, branch name or even tag.



19
# File 'lib/ansible/ruby/modules/generated/core/source_control/hg.rb', line 19

attribute :revision

#update:yes, ...

Returns If C(no), do not retrieve new revisions from the origin repository.

Returns:

  • (:yes, :no, nil)

    If C(no), do not retrieve new revisions from the origin repository



31
# File 'lib/ansible/ruby/modules/generated/core/source_control/hg.rb', line 31

attribute :update