GatewayInterface
interface GatewayInterface (View source)
Methods
void
connect(
string $username)
Connect to the SSH server.
bool
connected()
Determine if the gateway is connected.
void
run(
string $command)
Run a command against the server (non-blocking).
void
put(
string $local,
string $remote)
Upload a local file to the server.
void
putString(
string $remote,
string $contents)
Upload a string to to the given file on the server.
string|null
nextLine()
Get the next line of output from the server.
int|bool
status()
Get the exit status of the last command.
Details
at line line 44
void
putString(
string $remote,
string $contents)
Upload a string to to the given file on the server.