Class: Ansible::Ruby::Modules::Assemble
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Assemble
- Defined in:
- lib/ansible/ruby/modules/generated/files/assemble.rb
Overview
Assembles a configuration file from fragments. Often a particular program will take a single configuration file and does not support a C(conf.d) style structure where it is easy to build up the configuration from multiple sources. C(assemble) will take a directory of files that can be local or have already been transferred to the system, and concatenate them together to produce a destination file. Files are assembled in string sorting order. Puppet calls this idea I(fragments).
Instance Method Summary collapse
-
#backup ⇒ :yes, ...
Create a backup file (if C(yes)), including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
-
#delimiter ⇒ String?
A delimiter to separate the file contents.
-
#dest ⇒ String
A file to create using the concatenation of all of the source files.
-
#ignore_hidden ⇒ :yes, ...
A boolean that controls if files that start with a ‘.’ will be included or not.
-
#regexp ⇒ Object?
Assemble files only if C(regex) matches the filename.
-
#remote_src ⇒ :yes, ...
If False, it will search for src at originating/master machine, if True it will go to the remote/target machine for the src.
-
#src ⇒ String
An already existing directory full of source files.
-
#validate ⇒ String?
The validation command to run before copying into place.
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, ...
20 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 20 attribute :backup |
#delimiter ⇒ String?
24 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 24 attribute :delimiter |
#dest ⇒ String
16 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 16 attribute :dest |
#ignore_hidden ⇒ :yes, ...
35 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 35 attribute :ignore_hidden |
#regexp ⇒ Object?
32 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 32 attribute :regexp |
#remote_src ⇒ :yes, ...
28 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 28 attribute :remote_src |
#src ⇒ String
12 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 12 attribute :src |
#validate ⇒ String?
39 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 39 attribute :validate |