PHP 클래스 DNData

상속: extends ViewableData
파일 보기 프로젝트 열기: silverstripe/deploynaut 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dataTransferDir string Needs to be relative to webroot, and start with assets/ since all files are also referenced in the SilverStripe database through {@link File}.
$environmentDir string Path where the environment configurations can be found.
$gitUser string | null .."
$keyDir string Path where the keys are stored.
$signalDir string Path where the signal files are created.

공개 메소드들

메소드 설명
DNProjectList ( ) : DataList Provide a list of all projects.
__construct ( $environmentDir = null, $keyDir = null, $signalDir = null, $dataTransferDir = null, $gitUser = null )
getDataTransferDir ( ) : string Get the directory where data transfers should be saved
getEnvironmentDir ( ) : string Get the directory environment code is saved
getEnvironmentPaths ( $project ) Scan the directory and enumerate all envs founds within.
getGitUser ( ) : string Get the username that git commands should be run as
getKeyDir ( ) : string Get the directory where ssh are stored
getProjectPaths ( ) : array Grabs a list of projects from the env directory. The projects in the builds directory alone will not be picked up.
getSignalDir ( ) : string
inst ( ) : DNData Gets the DNData singleton
setDataTransferDir ( string $transferDir ) Set the directory where data transfers should be saved
setEnvironmentDir ( string $environmentDir ) Set the directory environment code is saved
setGitUser ( string $user ) Get the username that git commands should be run as
setKeyDir ( string $keyDir ) Set the directory where ssh are stored
setSignalDir ( string $signalDir )

메소드 상세

DNProjectList() 공개 메소드

Provide a list of all projects.
public DNProjectList ( ) : DataList
리턴 DataList

__construct() 공개 메소드

public __construct ( $environmentDir = null, $keyDir = null, $signalDir = null, $dataTransferDir = null, $gitUser = null )

getDataTransferDir() 공개 메소드

Get the directory where data transfers should be saved
public getDataTransferDir ( ) : string
리턴 string

getEnvironmentDir() 공개 메소드

Get the directory environment code is saved
public getEnvironmentDir ( ) : string
리턴 string

getEnvironmentPaths() 공개 메소드

Returns an array of paths
public getEnvironmentPaths ( $project )

getGitUser() 공개 메소드

Get the username that git commands should be run as
public getGitUser ( ) : string
리턴 string

getKeyDir() 공개 메소드

Get the directory where ssh are stored
public getKeyDir ( ) : string
리턴 string

getProjectPaths() 공개 메소드

Returns an array of paths
public getProjectPaths ( ) : array
리턴 array

getSignalDir() 공개 메소드

public getSignalDir ( ) : string
리턴 string

inst() 공개 정적인 메소드

Gets the DNData singleton
public static inst ( ) : DNData
리턴 DNData

setDataTransferDir() 공개 메소드

This should either be an absolute path (beginning with /) or a path that can be appended to the web root safely
public setDataTransferDir ( string $transferDir )
$transferDir string

setEnvironmentDir() 공개 메소드

Set the directory environment code is saved
public setEnvironmentDir ( string $environmentDir )
$environmentDir string

setGitUser() 공개 메소드

Get the username that git commands should be run as
public setGitUser ( string $user )
$user string

setKeyDir() 공개 메소드

Set the directory where ssh are stored
public setKeyDir ( string $keyDir )
$keyDir string

setSignalDir() 공개 메소드

public setSignalDir ( string $signalDir )
$signalDir string

프로퍼티 상세

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

Needs to be relative to webroot, and start with assets/ since all files are also referenced in the SilverStripe database through {@link File}.
protected string $dataTransferDir
리턴 string

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

Path where the environment configurations can be found.
protected string $environmentDir
리턴 string

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

.."
protected string|null $gitUser
리턴 string | null

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

Path where the keys are stored.
protected string $keyDir
리턴 string

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

Path where the signal files are created.
protected string $signalDir
리턴 string