NAME

Rex::Commands::Download

DESCRIPTION

With this module you can download a remotefile via sftp from a host to your local computer.

SYNOPSIS

task "download", "remoteserver", sub {
   download "/remote/file", "localfile";
};

task "download2", "remoteserver", sub {
   download "/remote/file";
};

EXPORTED FUNCTIONS

download($remote, [$local])

Perform a download. If no local file is specified it will download the file to the current directory.

task "download", "remoteserver", sub {
   download "/remote/file", "localfile";
};