PHP Class CraftCli\Command\DbPullCommand

Inheritance: extends Command
Datei anzeigen Open project: rsanchez/craft-cli

Protected Properties

Property Type Description
$debug boolean Debugging
$description
$localCredentials array Local database credentials
$name
$remoteCredentials array Remote database credentials
$sshCredentials array SSH credentials

Protected Methods

Method Description
fire ( )
getArguments ( )
getOptions ( )
makeMysqlCommand ( string $class, array $credentials, string $query = null ) : CraftCli\Support\AbstractMysqlCommand Make a MysqlCommand object
makeSshCommand ( string $command ) : SshCommand Make an SSH command object
testLocalCredentials ( ) : boolean Test local database credentials
testRemoteCredentials ( ) : boolean Test remote database credentials
testSshCredentials ( ) : boolean Test SSH credentials
validate ( ) : void Validate environments/config

Method Details

fire() protected method

protected fire ( )

getArguments() protected method

protected getArguments ( )

getOptions() protected method

protected getOptions ( )

makeMysqlCommand() protected method

Make a MysqlCommand object
protected makeMysqlCommand ( string $class, array $credentials, string $query = null ) : CraftCli\Support\AbstractMysqlCommand
$class string
$credentials array
$query string
return CraftCli\Support\AbstractMysqlCommand

makeSshCommand() protected method

Make an SSH command object
protected makeSshCommand ( string $command ) : SshCommand
$command string Command to execute over SSH
return CraftCli\Support\SshCommand

testLocalCredentials() protected method

Test local database credentials
protected testLocalCredentials ( ) : boolean
return boolean

testRemoteCredentials() protected method

Test remote database credentials
protected testRemoteCredentials ( ) : boolean
return boolean

testSshCredentials() protected method

Test SSH credentials
protected testSshCredentials ( ) : boolean
return boolean

validate() protected method

Validate environments/config
protected validate ( ) : void
return void

Property Details

$debug protected_oe property

Debugging
protected bool $debug
return boolean

$description protected_oe property

protected $description

$localCredentials protected_oe property

Local database credentials
protected array $localCredentials
return array

$name protected_oe property

protected $name

$remoteCredentials protected_oe property

Remote database credentials
protected array $remoteCredentials
return array

$sshCredentials protected_oe property

SSH credentials
protected array $sshCredentials
return array