Class: Ansible::Ruby::Modules::Patch
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Patch
- Defined in:
- lib/ansible/ruby/modules/generated/files/patch.rb
Overview
Apply patch files using the GNU patch tool.
Instance Method Summary collapse
-
#backup ⇒ :yes, ...
Passes C(–backup –version-control=numbered) to patch, producing numbered backup copies.
-
#basedir ⇒ String?
Path of a base directory in which the patch file will be applied.
-
#binary ⇒ :yes, ...
Setting to C(yes) will disable patch’s heuristic for transforming CRLF line endings into LF.
-
#dest ⇒ String?
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.
-
#remote_src ⇒ :yes, ...
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 C(src).
-
#src ⇒ String
Path of the patch file as accepted by the GNU patch tool.
-
#state ⇒ :absent, ...
Whether the patch should be applied or reverted.
-
#strip ⇒ Integer?
Number that indicates the smallest prefix containing leading slashes that will be stripped from each file name found in the patch file.
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
#backup ⇒ :yes, ...
36 |
# File 'lib/ansible/ruby/modules/generated/files/patch.rb', line 36 attribute :backup |
#basedir ⇒ String?
12 |
# File 'lib/ansible/ruby/modules/generated/files/patch.rb', line 12 attribute :basedir |
#binary ⇒ :yes, ...
40 |
# File 'lib/ansible/ruby/modules/generated/files/patch.rb', line 40 attribute :binary |
#dest ⇒ String?
16 |
# File 'lib/ansible/ruby/modules/generated/files/patch.rb', line 16 attribute :dest |
#remote_src ⇒ :yes, ...
28 |
# File 'lib/ansible/ruby/modules/generated/files/patch.rb', line 28 attribute :remote_src |
#src ⇒ String
20 |
# File 'lib/ansible/ruby/modules/generated/files/patch.rb', line 20 attribute :src |
#state ⇒ :absent, ...
24 |
# File 'lib/ansible/ruby/modules/generated/files/patch.rb', line 24 attribute :state |
#strip ⇒ Integer?
32 |
# File 'lib/ansible/ruby/modules/generated/files/patch.rb', line 32 attribute :strip |