tasks/ext/ScpTask.php
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
Methods

createFileSet(
)
:
\FileSetNested creator, creates a FileSet for this task
Returns
| Type | Description |
|---|---|
| \FileSet | The created fileset object |

getPrivkeyfilepassphrase(
$privkeyfilepassphrase
)
:
voidReturns the private keyfile passphrase
Parameters
| Name | Type | Description |
|---|---|---|
| $privkeyfilepassphrase |

setAutocreate(
$autocreate
)
:
voidSets whether to autocreate remote directories
Parameters
| Name | Type | Description |
|---|---|---|
| $autocreate |

setFetch(
$fetch
)
:
voidSets whether to send (default) or fetch files
Parameters
| Name | Type | Description |
|---|---|---|
| $fetch |

setLevel(
string $level
)
:
voidSet level of log messages generated (default = verbose)
Parameters
| Name | Type | Description |
|---|---|---|
| $level | string |

setPassword(
$password
)
:
voidSets the password of the user to scp
Parameters
| Name | Type | Description |
|---|---|---|
| $password |

setPrivkeyfile(
$privkeyfile
)
:
voidSets the private key file of the user to scp
Parameters
| Name | Type | Description |
|---|---|---|
| $privkeyfile |

setPrivkeyfilepassphrase(
$privkeyfilepassphrase
)
:
voidSets the private key file passphrase of the user to scp
Parameters
| Name | Type | Description |
|---|---|---|
| $privkeyfilepassphrase |

setPubkeyfile(
$pubkeyfile
)
:
voidSets the public key file of the user to scp
Parameters
| Name | Type | Description |
|---|---|---|
| $pubkeyfile |