Execute commands on a remote host using ssh.
Use \Project#createTask to register a new Task.
author |
Johan Van den Brande johan@vandenbrande.com |
---|---|
version |
$Id: 55d5a7cdfd813bc5d10f4e37eb4fa7cc8ff30c70 $ |
package |
phing.tasks.ext |
createSshconfig() : \Ssh2MethodParam
getCommand()
getDescription() : string
string
The text description of the task
getHost()
getLocation() : \Location
getOwningTarget() : \Target
getPassword()
getPort()
getPrivkeyfile()
getPrivkeyfilepassphrase( $privkeyfilepassphrase)
getProject() : \Project
getPty()
getPubkeyfile()
getRegisterSlot(string $slotName)
string
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
getUsername()
handleStream( $stream)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
setCommand( $command)
setDescription(string $desc)
string
The text describing the task
setDisplay(boolean $display)
boolean
setFailonerror( $failonerror)
setHost( $host)
setLocation(\Location $location)
setOwningTarget(\Target $target)
setPassword( $password)
setPort( $port)
setPrivkeyfile( $privkeyfile)
setPrivkeyfilepassphrase( $privkeyfilepassphrase)
setProject(\Project $project)
setProperty(string $property)
string
setPty( $pty)
setPubkeyfile( $pubkeyfile)
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
setupConnection()
setUsername( $username)
host :
port :
methods :
username :
password :
command :
pubkeyfile :
privkeyfile :
privkeyfilepassphrase :
pty :
failonerror :
property : string
var |
---|
string
display : boolean
var |
---|
boolean
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project