table of contents
other versions
- buster 1.6.0-1
- buster-backports 1.12.2-1~bpo10+1
- testing 1.13.2-1
- unstable 1.13.3-1
Rex::Commands::Upload(3pm) | User Contributed Perl Documentation | Rex::Commands::Upload(3pm) |
NAME¶
Rex::Commands::Upload - Upload a local file to a remote serverDESCRIPTION¶
With this module you can upload a local file via sftp to a remote host.SYNOPSIS¶
task "upload", "remoteserver", sub { upload "localfile", "/remote/file"; };
EXPORTED FUNCTIONS¶
upload($local, $remote)¶
Perform an upload. If $remote is a directory the file will be uploaded to that directory.task "upload", "remoteserver", sub { upload "localfile", "/path"; };
This function supports the following hooks:
- before
- This gets executed before everything is done. The return value of this hook overwrite the original parameters of the function-call.
- before_change
- This gets executed right before the new file is written.
- after_change
- This gets executed right after the file was written.
- after
- This gets executed right before the upload() function returns.
2018-02-01 | perl v5.26.1 |