Class: Ansible::Ruby::Modules::Find
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Find
- Defined in:
- lib/ansible/ruby/modules/generated/files/find.rb
Overview
Return a list of files based on specific criteria. Multiple criteria are AND’d together. For Windows targets, use the M(win_find) module instead.
Instance Method Summary collapse
-
#age ⇒ String, ...
Select files whose age is equal to or greater than the specified time.
-
#age_stamp ⇒ :atime, ...
Choose the file property against which we compare age.
-
#contains ⇒ Object?
One or more regex patterns which should be matched against the file content.
-
#depth ⇒ Object?
Set the maximum number of levels to decend into.
-
#excludes ⇒ Array<String>, ...
One or more (shell or regex) patterns, which type is controlled by C(use_regex) option.,Items matching an C(excludes) pattern are culled from C(patterns) matches.
-
#file_type ⇒ :any, ...
Type of file to select.,The ‘link’ and ‘any’ choices were added in version 2.3.
-
#follow ⇒ :yes, ...
Set this to true to follow symlinks in path for systems with python 2.6+.
-
#get_checksum ⇒ :yes, ...
Set this to true to retrieve a file’s sha1 checksum.
-
#hidden ⇒ :yes, ...
Set this to true to include hidden files, otherwise they’ll be ignored.
-
#paths ⇒ String
List of paths of directories to search.
-
#patterns ⇒ String?
One or more (shell or regex) patterns, which type is controlled by C(use_regex) option.,The patterns restrict the list of files to be returned to those whose basenames match at least one of the patterns specified.
-
#recurse ⇒ :yes, ...
If target is a directory, recursively descend into the directory looking for files.
-
#size ⇒ String?
Select files whose size is equal to or greater than the specified size.
-
#use_regex ⇒ :yes, ...
If false, the patterns are file globs (shell).
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
#age ⇒ String, ...
13 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 13 attribute :age |
#age_stamp ⇒ :atime, ...
44 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 44 attribute :age_stamp |
#contains ⇒ Object?
25 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 25 attribute :contains |
#depth ⇒ Object?
64 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 64 attribute :depth |
#excludes ⇒ Array<String>, ...
21 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 21 attribute :excludes |
#file_type ⇒ :any, ...
32 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 32 attribute :file_type |
#follow ⇒ :yes, ...
52 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 52 attribute :follow |
#get_checksum ⇒ :yes, ...
56 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 56 attribute :get_checksum |
#hidden ⇒ :yes, ...
48 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 48 attribute :hidden |
#paths ⇒ String
28 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 28 attribute :paths |
#patterns ⇒ String?
17 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 17 attribute :patterns |
#recurse ⇒ :yes, ...
36 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 36 attribute :recurse |
#size ⇒ String?
40 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 40 attribute :size |
#use_regex ⇒ :yes, ...
60 |
# File 'lib/ansible/ruby/modules/generated/files/find.rb', line 60 attribute :use_regex |