Jan Gehring > Rex-0.43.2 > Rex::Commands::Upload

Download:
Rex-0.43.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  1
View/Report Bugs
Source   Latest Release: Rex-0.48.0

NAME ^

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

DESCRIPTION ^

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";
 };
syntax highlighting: