Class: Ansible::Ruby::Modules::Replace

Inherits:
Base show all
Includes:
Helpers::FileAttributes
Defined in:
lib/ansible/ruby/modules/generated/files/replace.rb,
lib/ansible/ruby/modules/custom/files/replace.rb

Overview

This module will replace all instances of a pattern within a file. It is up to the user to maintain idempotence by ensuring that the same pattern would never match any replacements made.

Instance Method Summary collapse

Methods included from Helpers::FileAttributes

included

Methods inherited from Base

#ansible_name, #to_h

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

#afterString?



25
# File 'lib/ansible/ruby/modules/generated/files/replace.rb', line 25

attribute :after

#backup:yes, ...



33
# File 'lib/ansible/ruby/modules/generated/files/replace.rb', line 33

attribute :backup

#beforeString?



29
# File 'lib/ansible/ruby/modules/generated/files/replace.rb', line 29

attribute :before

#encodingString?



40
# File 'lib/ansible/ruby/modules/generated/files/replace.rb', line 40

attribute :encoding

#othersObject?



37
# File 'lib/ansible/ruby/modules/generated/files/replace.rb', line 37

attribute :others

#pathString



13
# File 'lib/ansible/ruby/modules/generated/files/replace.rb', line 13

attribute :path

#regexpString



17
# File 'lib/ansible/ruby/modules/generated/files/replace.rb', line 17

attribute :regexp

#replaceString?



21
# File 'lib/ansible/ruby/modules/generated/files/replace.rb', line 21

attribute :replace