MultiSsh
in package
Table of Contents
- $cfg : mixed
- $hosts : mixed
- $noOutput : Closure
- $processes : mixed
- __construct() : mixed
- {{{ establishes a connection to the servers in the $cfg
- execute() : mixed
- getOutput() : mixed
- upload() : mixed
Properties
$cfg
private
mixed
$cfg
$hosts
private
mixed
$hosts
= []
$noOutput
private
Closure
$noOutput
$processes
private
mixed
$processes
= []
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 —upload()
public
upload(mixed $src, mixed $dest[, mixed $onOutput = null ]) : mixed
Parameters
- $src : mixed
- $dest : mixed
- $onOutput : mixed = null