Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Rex::Commands::Upload(User Contributed Perl DocumentatRex::Commands::Upload(3)

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";
	};

       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.

perl v5.24.1			  2016-07-16	      Rex::Commands::Upload(3)

NAME | DESCRIPTION | SYNOPSIS | EXPORTED FUNCTIONS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Rex::Commands::Upload&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help