PHP 클래스 Rocketeer\Services\Connections\ConnectionsHandler

저자: Maxime Fabre ([email protected])
상속: use trait Rocketeer\Traits\HasLocator
파일 보기 프로젝트 열기: anahkiasen/rocketeer

보호된 프로퍼티들

프로퍼티 타입 설명
$connection The current connection.
$connections The connections to use.
$currentServer The current server.
$handle The current handle.
$stage The current stage.

공개 메소드들

메소드 설명
disconnect ( ) Flush active connection(s).
getAvailableConnections ( ) : string[][] | string[] Get the available connections.
getConnection ( ) : string Get the active connection.
getConnectionCredentials ( string | null $connection = null ) : string[][] Get the credentials for a particular connection.
getConnections ( ) : string[] Get the connection in use.
getHandle ( string | null $connection = null, integer | null $server = null, string | null $stage = null ) : string Build the current connection's handle.
getRepositoryBranch ( ) : string Get the repository branch to use.
getRepositoryCredentials ( ) : array Get the credentials for the repository.
getRepositoryEndpoint ( ) : string Get the URL to the Git repository.
getServer ( ) : integer
getServerCredentials ( string | null $connection = null, integer | null $server = null ) : mixed Get thecredentials for as server.
getStage ( ) : string Get the current stage.
getStages ( ) : array Get the various stages provided by the User.
isMultiserver ( string $connection ) : boolean Check if a connection is multiserver or not.
isValidConnection ( string $connection ) : boolean Check if a connection has credentials related to it.
needsCredentials ( ) : boolean Whether the repository used is using SSH or HTTPS.
setConnection ( string $connection, integer $server ) Set the current connection.
setConnections ( string | string[] $connections ) Set the active connections.
setStage ( string | null $stage ) Set the stage Tasks will execute on.
syncConnectionCredentials ( string | null $connection = null, array $credentials = [], integer $server ) Sync Rocketeer's credentials with Laravel's.

메소드 상세

disconnect() 공개 메소드

Flush active connection(s).
public disconnect ( )

getAvailableConnections() 공개 메소드

Get the available connections.
public getAvailableConnections ( ) : string[][] | string[]
리턴 string[][] | string[]

getConnection() 공개 메소드

Get the active connection.
public getConnection ( ) : string
리턴 string

getConnectionCredentials() 공개 메소드

Get the credentials for a particular connection.
public getConnectionCredentials ( string | null $connection = null ) : string[][]
$connection string | null
리턴 string[][]

getConnections() 공개 메소드

Get the connection in use.
public getConnections ( ) : string[]
리턴 string[]

getHandle() 공개 메소드

Build the current connection's handle.
public getHandle ( string | null $connection = null, integer | null $server = null, string | null $stage = null ) : string
$connection string | null
$server integer | null
$stage string | null
리턴 string

getRepositoryBranch() 공개 메소드

Get the repository branch to use.
public getRepositoryBranch ( ) : string
리턴 string

getRepositoryCredentials() 공개 메소드

Get the credentials for the repository.
public getRepositoryCredentials ( ) : array
리턴 array

getRepositoryEndpoint() 공개 메소드

Get the URL to the Git repository.
public getRepositoryEndpoint ( ) : string
리턴 string

getServer() 공개 메소드

public getServer ( ) : integer
리턴 integer

getServerCredentials() 공개 메소드

Get thecredentials for as server.
public getServerCredentials ( string | null $connection = null, integer | null $server = null ) : mixed
$connection string | null
$server integer | null
리턴 mixed

getStage() 공개 메소드

Get the current stage.
public getStage ( ) : string
리턴 string

getStages() 공개 메소드

Get the various stages provided by the User.
public getStages ( ) : array
리턴 array

isMultiserver() 공개 메소드

Check if a connection is multiserver or not.
public isMultiserver ( string $connection ) : boolean
$connection string
리턴 boolean

isValidConnection() 공개 메소드

Check if a connection has credentials related to it.
public isValidConnection ( string $connection ) : boolean
$connection string
리턴 boolean

needsCredentials() 공개 메소드

Whether the repository used is using SSH or HTTPS.
public needsCredentials ( ) : boolean
리턴 boolean

setConnection() 공개 메소드

Set the current connection.
public setConnection ( string $connection, integer $server )
$connection string
$server integer

setConnections() 공개 메소드

Set the active connections.
public setConnections ( string | string[] $connections )
$connections string | string[]

setStage() 공개 메소드

Set the stage Tasks will execute on.
public setStage ( string | null $stage )
$stage string | null

syncConnectionCredentials() 공개 메소드

Sync Rocketeer's credentials with Laravel's.
public syncConnectionCredentials ( string | null $connection = null, array $credentials = [], integer $server )
$connection string | null
$credentials array
$server integer

프로퍼티 상세

$connection 보호되어 있는 프로퍼티

The current connection.
protected $connection

$connections 보호되어 있는 프로퍼티

The connections to use.
protected $connections

$currentServer 보호되어 있는 프로퍼티

The current server.
protected $currentServer

$handle 보호되어 있는 프로퍼티

The current handle.
protected $handle

$stage 보호되어 있는 프로퍼티

The current stage.
protected $stage