classes/phing/tasks/ext/SshTask.php

Execute commands on a remote host using ssh.

author
Johan Van den Brande
package
phing.tasks.ext
version
$Id: SshTask.php 1205 2011-07-02 10:34:13Z mrook $

\SshTask

Execute commands on a remote host using ssh.

Use {@link Project#createTask} to register a new Task.

Extends from
\Task
author
Johan Van den Brande
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.ext
version
$Id: SshTask.php 1205 2011-07-02 10:34:13Z mrook $

Properties

Propertyprivate  $command= ''
Details
Type
Propertyprivateboolean  $display= 'true'

Whether to display the output of the command

Default valuetrueDetails
Type
boolean
Propertyprivate  $host= ''
Details
Type
Propertyprivate  $password= ''
Details
Type
Propertyprivate  $port= '22'
Default value22Details
Type
Propertyprivate  $privkeyfile= ''
Details
Type
Propertyprivate  $privkeyfilepassphrase= ''
Details
Type
Propertyprivatestring  $property= ''

The name of the property to capture (any) output of the command

Details
Type
string
Propertyprivate  $pubkeyfile= ''
Details
Type
Propertyprivate  $username= ''
Details
Type

Methods

methodpublic  getCommand( ) :
methodpublic  getHost( ) :
methodpublic  getPassword( ) :
methodpublic  getPort( ) :
methodpublic  getPrivkeyfile( ) :
Returns the private keyfile
methodpublic  getPrivkeyfilepassphrase(  $privkeyfilepassphrase ) :
Returns the private keyfile passphrase
Parameters
Name Type Description
$privkeyfilepassphrase
methodpublic  getPubkeyfile( ) :
Returns the pubkeyfile
methodpublic  getUsername( ) :
methodpublic  init( ) :
methodpublic  main( ) :
methodpublic  setCommand(  $command ) :
Parameters
Name Type Description
$command
methodpublic  setDisplay( boolean $display ) :
Sets whether to display the output of the command
Parameters
Name Type Description
$display boolean
methodpublic  setHost(  $host ) :
Parameters
Name Type Description
$host
methodpublic  setPassword(  $password ) :
Parameters
Name Type Description
$password
methodpublic  setPort(  $port ) :
Parameters
Name Type Description
$port
methodpublic  setPrivkeyfile(  $privkeyfile ) :
Sets the private key file of the user to scp
Parameters
Name Type Description
$privkeyfile
methodpublic  setPrivkeyfilepassphrase(  $privkeyfilepassphrase ) :
Sets the private key file passphrase of the user to scp
Parameters
Name Type Description
$privkeyfilepassphrase
methodpublic  setProperty( string $property ) :
Sets the name of the property to capture (any) output of the command
Parameters
Name Type Description
$property string
methodpublic  setPubkeyfile(  $pubkeyfile ) :
Sets the public key file of the user to scp
Parameters
Name Type Description
$pubkeyfile
methodpublic  setUsername(  $username ) :
Parameters
Name Type Description
$username
Documentation was generated by DocBlox 0.13.1.