PHP 클래스 REBELinBLUE\Deployer\Scripts\Runner

파일 보기 프로젝트 열기: rebelinblue/deployer 1 사용 예제들

공개 메소드들

메소드 설명
__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