Property | Type | Description | |
---|---|---|---|
$LOGDIR | |||
$command | |||
$config | walle\config\Config | Config | |
$log | |||
$logFile | mixed | Handler to the current Log File. | |
$status | integer | 命令运行返回值:0失败,1成功 |
Method | Description | |
---|---|---|
__construct ( $config ) | 加载配置 | |
getExeCommand ( ) : string | 获取执行command | |
getExeLog ( ) : string | 获取执行log | |
getExeStatus ( ) : string | 获取执行log | |
getMs ( ) : integer | 获取耗时毫秒数 | |
log ( $message ) | ||
runLocalCommand ( $command ) : boolean | integer | 执行本地宿主机命令 | |
runRemoteCommand ( string $command, integer $delay ) : boolean | 执行远程目标机器命令 | |
setConfig ( $config ) | 加载配置 |
Method | Description | |
---|---|---|
getConfig ( ) : walle\config\Config | 获取配置 | |
getHostName ( $host ) : mixed | 获取目标机器的ip或别名 | |
getHostPort ( $host, integer $default = 22 ) : integer | 获取目标机器的ssh端口 |
protected getConfig ( ) : walle\config\Config | ||
return | walle\config\Config |
protected getHostName ( $host ) : mixed | ||
$host | ||
return | mixed |
protected getHostPort ( $host, integer $default = 22 ) : integer | ||
$host | ||
$default | integer | |
return | integer |
final public runLocalCommand ( $command ) : boolean | integer | ||
$command | ||
return | boolean | integer | true 成功,false 失败 |
protected Config,walle\config $config | ||
return | walle\config\Config |
protected static mixed $logFile | ||
return | mixed |