Class: Ansible::Ruby::Modules::Find
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Find
- Defined in:
- lib/ansible/ruby/modules/generated/core/files/find.rb
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 re patterns which should be matched against the file content.
-
#file_type ⇒ :file, ...
Type of file to select.
-
#follow ⇒ Boolean?
Set this to true to follow symlinks in path for systems with python 2.6+.
-
#get_checksum ⇒ Boolean?
Set this to true to retrieve a file’s sha1 checksum.
-
#hidden ⇒ Boolean?
Set this to true to include hidden files, otherwise they’ll be ignored.
-
#paths ⇒ String
List of paths to the file or directory to search.
-
#patterns ⇒ String?
One or more (shell or regex) patterns, which type is controled 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 ⇒ Boolean?
If false the patterns are file globs (shell) if true they are python regexes.
Methods inherited from Base
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
#age ⇒ String?
Returns Select files whose age is equal to or greater than the specified time. Use a negative age to find files equal to or less than the specified time. You can choose seconds, minutes, hours, days, or weeks by specifying the first letter of any of those words (e.g., “1w”).
10 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 10 attribute :age |
#age_stamp ⇒ :atime, ...
Returns Choose the file property against which we compare age. Default is mtime.
37 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 37 attribute :age_stamp |
#contains ⇒ Object?
Returns One or more re patterns which should be matched against the file content.
18 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 18 attribute :contains |
#file_type ⇒ :file, ...
Returns Type of file to select.
25 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 25 attribute :file_type |
#follow ⇒ Boolean?
Returns Set this to true to follow symlinks in path for systems with python 2.6+.
45 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 45 attribute :follow |
#get_checksum ⇒ Boolean?
Returns Set this to true to retrieve a file’s sha1 checksum.
49 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 49 attribute :get_checksum |
#hidden ⇒ Boolean?
Returns Set this to true to include hidden files, otherwise they’ll be ignored.
41 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 41 attribute :hidden |
#paths ⇒ String
Returns List of paths to the file or directory to search. All paths must be fully qualified.
21 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 21 attribute :paths |
#patterns ⇒ String?
Returns One or more (shell or regex) patterns, which type is controled 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. Multiple patterns can be specified using a list.
14 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 14 attribute :patterns |
#recurse ⇒ :yes, ...
Returns If target is a directory, recursively descend into the directory looking for files.
29 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 29 attribute :recurse |
#size ⇒ String?
Returns Select files whose size is equal to or greater than the specified size. Use a negative size to find files equal to or less than the specified size. Unqualified values are in bytes, but b, k, m, g, and t can be appended to specify bytes, kilobytes, megabytes, gigabytes, and terabytes, respectively. Size is not evaluated for directories.
33 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 33 attribute :size |
#use_regex ⇒ Boolean?
Returns If false the patterns are file globs (shell) if true they are python regexes.
53 |
# File 'lib/ansible/ruby/modules/generated/core/files/find.rb', line 53 attribute :use_regex |