Class: Ansible::Ruby::Modules::Win_file
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Win_file
- Defined in:
- lib/ansible/ruby/modules/generated/core/windows/win_file.rb
Overview
Creates (empty) files, updates file modification stamps of existing files, and can create or remove directories. Unlike M(file), does not modify ownership, permissions or manipulate links.
Instance Method Summary collapse
-
#path ⇒ Object
Path to the file being managed.
-
#state ⇒ :file, ...
If C(directory), all immediate subdirectories will be created if they do not exist.
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
#path ⇒ Object
Returns path to the file being managed. Aliases: I(dest), I(name).
11 |
# File 'lib/ansible/ruby/modules/generated/core/windows/win_file.rb', line 11 attribute :path |
#state ⇒ :file, ...
Returns If C(directory), all immediate subdirectories will be created if they do not exist. If C(file), the file will NOT be created if it does not exist, see the M(copy) or M(template) module if you want that behavior. If C(absent), directories will be recursively deleted, and files will be removed. If C(touch), an empty file will be created if the c(path) does not exist, while an existing file or directory will receive updated file access and modification times (similar to the way ‘touch` works from the command line).
15 |
# File 'lib/ansible/ruby/modules/generated/core/windows/win_file.rb', line 15 attribute :state |