PHP Class DNData

Inheritance: extends ViewableData
Afficher le fichier Open project: silverstripe/deploynaut Class Usage Examples

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 )

Method Details

DNProjectList() public méthode

Provide a list of all projects.
public DNProjectList ( ) : DataList
Résultat DataList

__construct() public méthode

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

getDataTransferDir() public méthode

Get the directory where data transfers should be saved
public getDataTransferDir ( ) : string
Résultat string

getEnvironmentDir() public méthode

Get the directory environment code is saved
public getEnvironmentDir ( ) : string
Résultat string

getEnvironmentPaths() public méthode

Returns an array of paths
public getEnvironmentPaths ( $project )

getGitUser() public méthode

Get the username that git commands should be run as
public getGitUser ( ) : string
Résultat string

getKeyDir() public méthode

Get the directory where ssh are stored
public getKeyDir ( ) : string
Résultat string

getProjectPaths() public méthode

Returns an array of paths
public getProjectPaths ( ) : array
Résultat array

getSignalDir() public méthode

public getSignalDir ( ) : string
Résultat string

inst() public static méthode

Gets the DNData singleton
public static inst ( ) : DNData
Résultat DNData

setDataTransferDir() public méthode

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() public méthode

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

setGitUser() public méthode

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

setKeyDir() public méthode

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

setSignalDir() public méthode

public setSignalDir ( string $signalDir )
$signalDir string

Property Details

$dataTransferDir protected_oe property

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
Résultat string

$environmentDir protected_oe property

Path where the environment configurations can be found.
protected string $environmentDir
Résultat string

$gitUser protected_oe property

.."
protected string|null $gitUser
Résultat string | null

$keyDir protected_oe property

Path where the keys are stored.
protected string $keyDir
Résultat string

$signalDir protected_oe property

Path where the signal files are created.
protected string $signalDir
Résultat string