Свойство | Тип | Описание | |
---|---|---|---|
$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 ) |
public DNProjectList ( ) : DataList | ||
Результат | DataList |
public __construct ( $environmentDir = null, $keyDir = null, $signalDir = null, $dataTransferDir = null, $gitUser = null ) |
public getDataTransferDir ( ) : string | ||
Результат | string |
public getEnvironmentDir ( ) : string | ||
Результат | string |
public getEnvironmentPaths ( $project ) |
public getGitUser ( ) : string | ||
Результат | string |
public getProjectPaths ( ) : array | ||
Результат | array |
public static inst ( ) : DNData | ||
Результат | DNData |
public setDataTransferDir ( string $transferDir ) | ||
$transferDir | string |
public setEnvironmentDir ( string $environmentDir ) | ||
$environmentDir | string |
public setGitUser ( string $user ) | ||
$user | string |
protected string $dataTransferDir | ||
Результат | string |
protected string $environmentDir | ||
Результат | string |
protected string $keyDir | ||
Результат | string |
protected string $signalDir | ||
Результат | string |