Class: Ansible::Ruby::Modules::Patch

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/files/patch.rb

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, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#backup:yes, ...

Returns passes –backup –version-control=numbered to patch, producing numbered backup copies.

Returns:

  • (:yes, :no, nil)

    passes –backup –version-control=numbered to patch, producing numbered backup copies



30
# File 'lib/ansible/ruby/modules/generated/extras/files/patch.rb', line 30

attribute :backup

#basedirString?

Returns Path of a base directory in which the patch file will be applied. May be ommitted when C(dest) option is specified, otherwise required.

Returns:

  • (String, nil)

    Path of a base directory in which the patch file will be applied. May be ommitted when C(dest) option is specified, otherwise required.



10
# File 'lib/ansible/ruby/modules/generated/extras/files/patch.rb', line 10

attribute :basedir

#binaryString?

Returns Setting to C(yes) will disable patch’s heuristic for transforming CRLF line endings into LF. Line endings of src and dest must match. If set to C(no), patch will replace CRLF in src files on POSIX.

Returns:

  • (String, nil)

    Setting to C(yes) will disable patch’s heuristic for transforming CRLF line endings into LF. Line endings of src and dest must match. If set to C(no), patch will replace CRLF in src files on POSIX.



34
# File 'lib/ansible/ruby/modules/generated/extras/files/patch.rb', line 34

attribute :binary

#destString?

Returns Path of the file on the remote machine to be patched.,The names of the files to be patched are usually taken from the patch file, but if there’s just one file to be patched it can specified with this option.

Returns:

  • (String, nil)

    Path of the file on the remote machine to be patched.,The names of the files to be patched are usually taken from the patch file, but if there’s just one file to be patched it can specified with this option.



14
# File 'lib/ansible/ruby/modules/generated/extras/files/patch.rb', line 14

attribute :dest

#remote_src:yes, ...

Returns If C(no), it will search for src at originating/master machine, if C(yes) it will go to the remote/target machine for the src. Default is C(no).

Returns:

  • (:yes, :no, nil)

    If C(no), it will search for src at originating/master machine, if C(yes) it will go to the remote/target machine for the src. Default is C(no).



22
# File 'lib/ansible/ruby/modules/generated/extras/files/patch.rb', line 22

attribute :remote_src

#srcString

Returns Path of the patch file as accepted by the GNU patch tool. If C(remote_src) is ‘no’, the patch source file is looked up from the module’s “files” directory.

Returns:

  • (String)

    Path of the patch file as accepted by the GNU patch tool. If C(remote_src) is ‘no’, the patch source file is looked up from the module’s “files” directory.



18
# File 'lib/ansible/ruby/modules/generated/extras/files/patch.rb', line 18

attribute :src

#stripString?

Returns Number that indicates the smallest prefix containing leading slashes that will be stripped from each file name found in the patch file. For more information see the strip parameter of the GNU patch tool.

Returns:

  • (String, nil)

    Number that indicates the smallest prefix containing leading slashes that will be stripped from each file name found in the patch file. For more information see the strip parameter of the GNU patch tool.



26
# File 'lib/ansible/ruby/modules/generated/extras/files/patch.rb', line 26

attribute :strip