Class: Ansible::Ruby::Modules::Win_tempfile

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/windows/win_tempfile.rb

Overview

Creates temporary files and directories. For non-Windows targets, please use the M(tempfile) module instead.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#pathString?

Returns Location where temporary file or directory should be created.,If path is not specified default system temporary directory (%TEMP%) will be used.

Returns:

  • (String, nil)

    Location where temporary file or directory should be created.,If path is not specified default system temporary directory (%TEMP%) will be used.



17
# File 'lib/ansible/ruby/modules/generated/windows/win_tempfile.rb', line 17

attribute :path

#prefixString?

Returns Prefix of file/directory name created by module.

Returns:

  • (String, nil)

    Prefix of file/directory name created by module.



21
# File 'lib/ansible/ruby/modules/generated/windows/win_tempfile.rb', line 21

attribute :prefix

#state:directory, ...

Returns Whether to create file or directory.

Returns:

  • (:directory, :file, nil)

    Whether to create file or directory.



13
# File 'lib/ansible/ruby/modules/generated/windows/win_tempfile.rb', line 13

attribute :state

#suffixString?

Returns Suffix of file/directory name created by module.

Returns:

  • (String, nil)

    Suffix of file/directory name created by module.



25
# File 'lib/ansible/ruby/modules/generated/windows/win_tempfile.rb', line 25

attribute :suffix