Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
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 | ||
return | DataList |
public __construct ( $environmentDir = null, $keyDir = null, $signalDir = null, $dataTransferDir = null, $gitUser = null ) |
public getDataTransferDir ( ) : string | ||
return | string |
public getEnvironmentDir ( ) : string | ||
return | string |
public getEnvironmentPaths ( $project ) |
public getGitUser ( ) : string | ||
return | string |
public getProjectPaths ( ) : array | ||
return | array |
public setDataTransferDir ( string $transferDir ) | ||
$transferDir | string |
public setEnvironmentDir ( string $environmentDir ) | ||
$environmentDir | string |
public setGitUser ( string $user ) | ||
$user | string |
protected string $dataTransferDir | ||
return | string |
protected string $environmentDir | ||
return | string |
protected string $keyDir | ||
return | string |
protected string $signalDir | ||
return | string |