tasks/ext/ScpTask.php

Show: inherited
Table of Contents

Copy files to and from a remote host using scp.

Author
Michiel Rook  
Author
Johan Van den Brande  
Package
phing.tasks.ext  
Version
$Id: ScpTask.php 1388 2011-12-17 12:12:48Z mrook $  

\ScpTask

Package: phing\tasks\ext

Copy files to and from a remote host using scp.

Parent(s)
\Task < \ProjectComponent
Author
Michiel Rook  
Author
Johan Van den Brande  
Version
$Id: ScpTask.php 1388 2011-12-17 12:12:48Z mrook $  

Properties

Propertyprotected  $autocreate= 'true'
Default valuetrueDetails
Type
n/a
Propertyprotected  $connection= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $count= '0'
Default value0Details
Type
n/a
Propertyprotected  $fetch= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $file= '""'
Default value""Details
Type
n/a
Propertyprotected  $filesets= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $host= '""'
Default value""Details
Type
n/a
Propertyprotected  $localEndpoint= '""'
Default value""Details
Type
n/a
Propertyprotected  $logLevel= 'Project::MSG_VERBOSE'
Default valueProject::MSG_VERBOSEDetails
Type
n/a
Propertyprotected  $mode= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $password= '""'
Default value""Details
Type
n/a
Propertyprotected  $port= '22'
Default value22Details
Type
n/a
Propertyprotected  $privkeyfile= ''''
Default value''Details
Type
n/a
Propertyprotected  $privkeyfilepassphrase= ''''
Default value''Details
Type
n/a
Propertyprotected  $pubkeyfile= ''''
Default value''Details
Type
n/a
Propertyprotected  $remoteEndpoint= '""'
Default value""Details
Type
n/a
Propertyprotected  $sftp= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $todir= '""'
Default value""Details
Type
n/a
Propertyprotected  $username= '""'
Default value""Details
Type
n/a

Methods

methodprotectedcopyFile(  $local,  $remote ) : void

Parameters
Name Type Description
$local
$remote
methodpubliccreateFileSet( ) : \FileSet

Nested creator, creates a FileSet for this task

Returns
Type Description
\FileSet The created fileset object
methodpublicgetAutocreate( ) : void

Returns whether to autocreate remote directories

methodpublicgetDescription( ) : void

methodpublicgetFetch( ) : void

Returns whether to send (default) or fetch files

methodpublicgetFile( ) : void

Returns local filename

methodpublicgetHost( ) : void

Returns the remote host

methodpublicgetLocation( ) : void

methodpublicgetMode( ) : void

Returns the mode value

methodpublicgetOwningTarget( ) : void

methodpublicgetPassword( ) : void

Returns the password

methodpublicgetPort( ) : void

Returns the remote host port

methodpublicgetPrivkeyfile( ) : void

Returns the private keyfile

methodpublicgetPrivkeyfilepassphrase(  $privkeyfilepassphrase ) : void

Returns the private keyfile passphrase

Parameters
Name Type Description
$privkeyfilepassphrase
methodpublicgetProject( ) : void

methodpublicgetPubkeyfile( ) : void

Returns the pubkeyfile

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicgetTodir( ) : void

Returns the destination directory

methodpublicgetUsername( ) : void

Returns the username

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetAutocreate(  $autocreate ) : void

Sets whether to autocreate remote directories

Parameters
Name Type Description
$autocreate
methodpublicsetDescription( ) : void

methodpublicsetFetch(  $fetch ) : void

Sets whether to send (default) or fetch files

Parameters
Name Type Description
$fetch
methodpublicsetFile(  $file ) : void

Sets local filename

Parameters
Name Type Description
$file
methodpublicsetHost(  $h ) : void

Sets the remote host

Parameters
Name Type Description
$h
methodpublicsetLevel( string $level ) : void

Set level of log messages generated (default = verbose)

Parameters
Name Type Description
$level string
methodpublicsetLocation( ) : void

methodpublicsetMode(  $value ) : void

Sets the mode value

Parameters
Name Type Description
$value
methodpublicsetOwningTarget( ) : void

methodpublicsetPassword(  $password ) : void

Sets the password of the user to scp

Parameters
Name Type Description
$password
methodpublicsetPort(  $p ) : void

Sets the remote host port

Parameters
Name Type Description
$p
methodpublicsetPrivkeyfile(  $privkeyfile ) : void

Sets the private key file of the user to scp

Parameters
Name Type Description
$privkeyfile
methodpublicsetPrivkeyfilepassphrase(  $privkeyfilepassphrase ) : void

Sets the private key file passphrase of the user to scp

Parameters
Name Type Description
$privkeyfilepassphrase
methodpublicsetProject( ) : void

methodpublicsetPubkeyfile(  $pubkeyfile ) : void

Sets the public key file of the user to scp

Parameters
Name Type Description
$pubkeyfile
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetTodir(  $todir ) : void

Set destination directory

Parameters
Name Type Description
$todir
methodpublicsetUsername(  $username ) : void

Sets the username of the user to scp

Parameters
Name Type Description
$username
Documentation was generated by DocBlox 0.17.1.