Class: Ansible::Ruby::Modules::Win_copy

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

Overview

The M(win_copy) module copies a file on the local box to remote windows locations.

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, remove_existing_validations, #to_h, validates

Constructor Details

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

Instance Method Details

#destString

Returns Remote absolute path where the file should be copied to. If src is a directory, this must be a directory too. Use \ for path separators.

Returns:

  • (String)

    Remote absolute path where the file should be copied to. If src is a directory, this must be a directory too. Use \ for path separators.



15
# File 'lib/ansible/ruby/modules/generated/core/windows/win_copy.rb', line 15

attribute :dest

#srcString?

Returns Local path to a file to copy to the remote server; can be absolute or relative. If path is a directory, it is copied recursively. In this case, if path ends with “/”, only inside contents of that directory are copied to destination. Otherwise, if it does not end with “/”, the directory itself with all contents is copied. This behavior is similar to Rsync.

Returns:

  • (String, nil)

    Local path to a file to copy to the remote server; can be absolute or relative. If path is a directory, it is copied recursively. In this case, if path ends with “/”, only inside contents of that directory are copied to destination. Otherwise, if it does not end with “/”, the directory itself with all contents is copied. This behavior is similar to Rsync.



11
# File 'lib/ansible/ruby/modules/generated/core/windows/win_copy.rb', line 11

attribute :src