PHP Class Platformsh\Cli\Command\Tunnel\TunnelCommandBase

Inheritance: extends Platformsh\Cli\Command\CommandBase
Afficher le fichier Open project: commerceguys/platform-cli

Protected Properties

Свойство Type Description
$canBeRunMultipleTimes
$tunnelInfo

Méthodes publiques

Méthode Description
checkSupport ( )

Méthodes protégées

Méthode Description
closeTunnel ( array $tunnel ) : boolean Close an open tunnel.
createTunnelProcess ( string $url, string $remoteHost, integer $remotePort, integer $localPort, array $extraArgs = [] ) : Process
filterTunnels ( array $tunnels, Symfony\Component\Console\Input\InputInterface $input ) : array Filter a list of tunnels by the currently selected project/environment.
formatTunnelRelationship ( array $tunnel ) : string Format a tunnel's relationship as a string.
getPidFile ( array $tunnel ) : string
getPort ( integer $default = 30000 ) : integer Automatically determine the best port for a new tunnel.
getTunnelInfo ( boolean $open = true ) : array Get info on currently open tunnels.
getTunnelKey ( array $tunnel ) : string
isTunnelOpen ( array $tunnel ) : boolean | array Check whether a tunnel is already open.
openLog ( string $logFile ) : Symfony\Component\Console\Output\OutputInterface | false
saveTunnelInfo ( )
tunnelsAreEqual ( array $tunnel1, array $tunnel2 ) : boolean

Method Details

checkSupport() public méthode

public checkSupport ( )

closeTunnel() protected méthode

Close an open tunnel.
protected closeTunnel ( array $tunnel ) : boolean
$tunnel array
Résultat boolean True on success, false on failure.

createTunnelProcess() protected méthode

protected createTunnelProcess ( string $url, string $remoteHost, integer $remotePort, integer $localPort, array $extraArgs = [] ) : Process
$url string
$remoteHost string
$remotePort integer
$localPort integer
$extraArgs array
Résultat Symfony\Component\Process\Process

filterTunnels() protected méthode

Filter a list of tunnels by the currently selected project/environment.
protected filterTunnels ( array $tunnels, Symfony\Component\Console\Input\InputInterface $input ) : array
$tunnels array
$input Symfony\Component\Console\Input\InputInterface
Résultat array

formatTunnelRelationship() protected méthode

Format a tunnel's relationship as a string.
protected formatTunnelRelationship ( array $tunnel ) : string
$tunnel array
Résultat string

getPidFile() protected méthode

protected getPidFile ( array $tunnel ) : string
$tunnel array
Résultat string

getPort() protected méthode

Automatically determine the best port for a new tunnel.
protected getPort ( integer $default = 30000 ) : integer
$default integer
Résultat integer

getTunnelInfo() protected méthode

Get info on currently open tunnels.
protected getTunnelInfo ( boolean $open = true ) : array
$open boolean
Résultat array

getTunnelKey() protected méthode

protected getTunnelKey ( array $tunnel ) : string
$tunnel array
Résultat string

isTunnelOpen() protected méthode

Check whether a tunnel is already open.
protected isTunnelOpen ( array $tunnel ) : boolean | array
$tunnel array
Résultat boolean | array

openLog() protected méthode

protected openLog ( string $logFile ) : Symfony\Component\Console\Output\OutputInterface | false
$logFile string
Résultat Symfony\Component\Console\Output\OutputInterface | false

saveTunnelInfo() protected méthode

protected saveTunnelInfo ( )

tunnelsAreEqual() protected méthode

protected tunnelsAreEqual ( array $tunnel1, array $tunnel2 ) : boolean
$tunnel1 array
$tunnel2 array
Résultat boolean

Property Details

$canBeRunMultipleTimes protected_oe property

protected $canBeRunMultipleTimes

$tunnelInfo protected_oe property

protected $tunnelInfo