PHP Класс Pantheon\Terminus\Commands\Remote\SSHBaseCommand

Наследование: extends Pantheon\Terminus\Commands\TerminusCommand, implements Pantheon\Terminus\Site\SiteAwareInterface, use trait Pantheon\Terminus\Site\SiteAwareTrait
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$command Name of the command to be run as it will be used on server
$unavailable_commands A hash of commands which do not work using Terminus. The key is the native command, and the value is the Terminus equivalent which is optional.
$valid_frameworks array

Защищенные методы

Метод Описание
executeCommand ( array $command_args ) : string Execute the command remotely
prepareEnvironment ( string $site_env_id ) Define the environment and site properties
validateCommand ( array $command ) : boolean Validates the command as available
validateConnectionMode ( string $mode ) Validates that the environment is using the correct connection mode
validateEnvironment ( Site $site, Environment $environment ) Validates that the environment's connection mode is appropriately set
validateFramework ( string $framework ) Validates the framework being used

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

Метод Описание
getCommandLine ( string $command_args ) : string Gets the command-line args

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

executeCommand() защищенный Метод

Execute the command remotely
protected executeCommand ( array $command_args ) : string
$command_args array
Результат string

prepareEnvironment() защищенный Метод

Define the environment and site properties
protected prepareEnvironment ( string $site_env_id )
$site_env_id string The site/env to retrieve in . format

validateCommand() защищенный Метод

Validates the command as available
protected validateCommand ( array $command ) : boolean
$command array
Результат boolean

validateConnectionMode() защищенный Метод

Validates that the environment is using the correct connection mode
protected validateConnectionMode ( string $mode )
$mode string

validateEnvironment() защищенный Метод

Validates that the environment's connection mode is appropriately set
protected validateEnvironment ( Site $site, Environment $environment )
$site Site
$environment Environment

validateFramework() защищенный Метод

Validates the framework being used
protected validateFramework ( string $framework )
$framework string

Описание свойств

$command защищенное свойство

Name of the command to be run as it will be used on server
protected $command

$unavailable_commands защищенное свойство

A hash of commands which do not work using Terminus. The key is the native command, and the value is the Terminus equivalent which is optional.
protected $unavailable_commands

$valid_frameworks защищенное свойство

protected array $valid_frameworks
Результат array