Class: Ansible::Ruby::Modules::Stat

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/files/stat.rb

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#checksum_algorithm:sha1, ...

Returns Algorithm to determine checksum of file. Will throw an error if the host is unable to use specified algorithm.

Returns:

  • (:sha1, :sha224, :sha256, :sha384, :sha512, nil)

    Algorithm to determine checksum of file. Will throw an error if the host is unable to use specified algorithm.



26
# File 'lib/ansible/ruby/modules/generated/core/files/stat.rb', line 26

attribute :checksum_algorithm

#followBoolean?

Returns Whether to follow symlinks.

Returns:

  • (Boolean, nil)

    Whether to follow symlinks



14
# File 'lib/ansible/ruby/modules/generated/core/files/stat.rb', line 14

attribute :follow

#get_checksumBoolean?

Returns Whether to return a checksum of the file (default sha1).

Returns:

  • (Boolean, nil)

    Whether to return a checksum of the file (default sha1)



22
# File 'lib/ansible/ruby/modules/generated/core/files/stat.rb', line 22

attribute :get_checksum

#get_md5Boolean?

Returns Whether to return the md5 sum of the file. Will return None if we’re unable to use md5 (Common for FIPS-140 compliant systems).

Returns:

  • (Boolean, nil)

    Whether to return the md5 sum of the file. Will return None if we’re unable to use md5 (Common for FIPS-140 compliant systems)



18
# File 'lib/ansible/ruby/modules/generated/core/files/stat.rb', line 18

attribute :get_md5

#mimeBoolean?

Returns Use file magic and return data about the nature of the file. this uses the ‘file’ utility found on most Linux/Unix systems.,This will add both ‘mime_type` and ’charset’ fields to the return, if possible.

Returns:

  • (Boolean, nil)

    Use file magic and return data about the nature of the file. this uses the ‘file’ utility found on most Linux/Unix systems.,This will add both ‘mime_type` and ’charset’ fields to the return, if possible.



30
# File 'lib/ansible/ruby/modules/generated/core/files/stat.rb', line 30

attribute :mime

#pathString

Returns The full path of the file/object to get the facts of.

Returns:

  • (String)

    The full path of the file/object to get the facts of



10
# File 'lib/ansible/ruby/modules/generated/core/files/stat.rb', line 10

attribute :path