Documentation

MultiSsh
in package

Table of Contents

__construct()  : mixed
{{{ establishes a connection to the servers in the $cfg
execute()  : mixed
getOutput()  : mixed
removeHost()  : mixed
upload()  : mixed

Methods

__construct()

{{{ establishes a connection to the servers in the $cfg

public __construct(array<string|int, mixed>|Settings $cfg) : mixed
Parameters
$cfg : array<string|int, mixed>|Settings

of the form ['key' => [ 'host' => '', 'user' => '', ('port' => '')], (...)]

Return values
mixed

execute()

public execute(mixed $cmd[, mixed $onOutput = null ]) : mixed
Parameters
$cmd : mixed
$onOutput : mixed = null
Return values
mixed

getOutput()

public getOutput() : mixed
Return values
mixed

removeHost()

public removeHost(string $id) : mixed
Parameters
$id : string
Return values
mixed

upload()

public upload(mixed $src, mixed $dest[, mixed $onOutput = null ]) : mixed
Parameters
$src : mixed
$dest : mixed
$onOutput : mixed = null
Return values
mixed

Search results