MultiSsh
in package
Table of Contents
Methods
- __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' => '')], (...)]
execute()
public
execute(mixed $cmd[, mixed $onOutput = null ]) : mixed
Parameters
- $cmd : mixed
- $onOutput : mixed = null
getOutput()
public
getOutput() : mixed
removeHost()
public
removeHost(string $id) : mixed
Parameters
- $id : string
upload()
public
upload(mixed $src, mixed $dest[, mixed $onOutput = null ]) : mixed
Parameters
- $src : mixed
- $dest : mixed
- $onOutput : mixed = null