1Rex::Commands::Upload(3U)ser Contributed Perl DocumentatiRoenx::Commands::Upload(3)
2
3
4

NAME

6       Rex::Commands::Upload - Upload a local file to a remote server
7

DESCRIPTION

9       With this module you can upload a local file via sftp to a remote host.
10

SYNOPSIS

12        task "upload", "remoteserver", sub {
13          upload "localfile", "/remote/file";
14        };
15

EXPORTED FUNCTIONS

17   upload($local, $remote)
18       Perform an upload. If $remote is a directory the file will be uploaded
19       to that directory.
20
21        task "upload", "remoteserver", sub {
22          upload "localfile", "/path";
23        };
24
25       This function supports the following hooks:
26
27       before  This gets executed before everything is done. The return value
28               of this hook overwrite the original parameters of the function-
29               call.
30
31       before_change
32               This gets executed right before the new file is written.
33
34       after_change
35               This gets executed right after the file was written.
36
37       after   This gets executed right before the upload() function returns.
38
39
40
41perl v5.30.2                      2020-04-06          Rex::Commands::Upload(3)
Impressum