PHP Class Altax\Module\Task\Process\Process

Datei anzeigen Open project: kohkimakimoto/altax Class Usage Examples

Protected Properties

Property Type Description
$node
$runtimeTask

Public Methods

Method Description
__construct ( $runtimeTask, $node )
get ( $remote, $local )
getLocalInfoPrefix ( )
getNode ( )
getNodeName ( )
getRemoteInfoPrefix ( )
getRuntimeTask ( )
getString ( $remote )
put ( $local, $remote )
putString ( $remote, $contents )
run ( string $commandline, array $options = [] ) : ProcessResult Runing a command on remote server.
runLocally ( string $commandline, array $options = [] ) : ProcessResult Running a command on local machine.

Protected Methods

Method Description
compileRealCommand ( $commandline, $options, $isLocalExecute = FALSE )
getPid ( )
getSFTP ( )
getSSH ( )

Method Details

__construct() public method

public __construct ( $runtimeTask, $node )

compileRealCommand() protected method

protected compileRealCommand ( $commandline, $options, $isLocalExecute = FALSE )

get() public method

public get ( $remote, $local )

getLocalInfoPrefix() public method

public getLocalInfoPrefix ( )

getNode() public method

public getNode ( )

getNodeName() public method

public getNodeName ( )

getPid() protected method

protected getPid ( )

getRemoteInfoPrefix() public method

public getRemoteInfoPrefix ( )

getRuntimeTask() public method

public getRuntimeTask ( )

getSFTP() protected method

protected getSFTP ( )

getSSH() protected method

protected getSSH ( )

getString() public method

public getString ( $remote )

put() public method

public put ( $local, $remote )

putString() public method

public putString ( $remote, $contents )

run() public method

Runing a command on remote server.
public run ( string $commandline, array $options = [] ) : ProcessResult
$commandline string
$options array
return ProcessResult

runLocally() public method

Running a command on local machine.
public runLocally ( string $commandline, array $options = [] ) : ProcessResult
$commandline string
$options array
return ProcessResult

Property Details

$node protected_oe property

protected $node

$runtimeTask protected_oe property

protected $runtimeTask