PHP Класс REBELinBLUE\Deployer\Scripts\Runner

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__call ( string $method, array $arguments = [] ) : mixed Overloading call to undefined methods to pass them to the process object.
__construct ( string $input, array $tokens = [], boolean $script_source = self::TEMPLATE_INPUT ) Runner constructor.
appendScript ( string $script ) Append commands to the end of the script.
prependScript ( string $script ) Prepend commands to the beginning of the script.
run ( callable | null $callback = null ) : integer Runs a script locally.
setServer ( Server $server, string $private_key, string $alternative_user = null ) Sets the script to run on a remote server.

Приватные методы

Метод Описание
wrapCommand ( string $script ) : string Wraps the command in either local or remote wrappers.

Описание методов

__call() публичный Метод

Overloading call to undefined methods to pass them to the process object.
public __call ( string $method, array $arguments = [] ) : mixed
$method string
$arguments array
Результат mixed

__construct() публичный Метод

Runner constructor.
public __construct ( string $input, array $tokens = [], boolean $script_source = self::TEMPLATE_INPUT )
$input string
$tokens array
$script_source boolean

appendScript() публичный Метод

Append commands to the end of the script.
public appendScript ( string $script )
$script string

prependScript() публичный Метод

Prepend commands to the beginning of the script.
public prependScript ( string $script )
$script string

run() публичный Метод

Runs a script locally.
public run ( callable | null $callback = null ) : integer
$callback callable | null
Результат integer

setServer() публичный Метод

Sets the script to run on a remote server.
public setServer ( Server $server, string $private_key, string $alternative_user = null )
$server REBELinBLUE\Deployer\Server
$private_key string
$alternative_user string