PHP Class DNDeployment

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

Méthodes publiques

Méthode Description
Link ( )
LogContent ( )
LogLink ( )
ResqueStatus ( ) : string This remains here for backwards compatibility - we don't want to expose Resque status in here.
canView ( $member = null )
enqueueDeployment ( ) : string Start a resque job for this deployment
getChanges ( ) : ArrayList Return a list of things that are going to be deployed, such as the code version, and any infrastructural changes.
getCommit ( ) : Gitonomy\Git\Commit | null Gets the commit from source. The result is cached upstream in Repository.
getCommitMessage ( ) : string | null Gets the commit message.
getCommitSubjectMessage ( ) : string | null Gets the commit message.
getCommitURL ( ) : null | string Get the commit URL to the commit associated with this deployment.
getDeploymentStrategy ( ) : DeploymentStrategy
getFiniteState ( )
getFullDeployMessages ( ) : ArrayList Collate the list of additional flags to affix to this deployment.
getMachine ( )
getRepository ( ) : Repository | null Fetch the git repository
getSigFile ( )
getStatus ( )
getTag ( ) : Varchar | null Fetches the latest tag for the deployed commit
getTags ( ) : ArrayList Return all tags for the deployed commit.
log ( ) : DeploynautLogFile
setFiniteState ( $state )
setResqueToken ( $token )
setSignal ( $signal ) Signal the worker to self-abort. If we had a reliable way of figuring out the right PID, we could posix_kill directly, but Resque seems to not provide a way to find out the PID from the job nor worker.

Méthodes protégées

Méthode Description
logfile ( ) : string Return a path to the log file.

Method Details

LogContent() public méthode

public LogContent ( )

ResqueStatus() public méthode

Resque job (DeployJob) will change statuses as part of its execution.
public ResqueStatus ( ) : string
Résultat string

canView() public méthode

public canView ( $member = null )

enqueueDeployment() public méthode

Start a resque job for this deployment
public enqueueDeployment ( ) : string
Résultat string Resque token

getChanges() public méthode

Return a list of things that are going to be deployed, such as the code version, and any infrastructural changes.
public getChanges ( ) : ArrayList
Résultat ArrayList

getCommit() public méthode

Gets the commit from source. The result is cached upstream in Repository.
public getCommit ( ) : Gitonomy\Git\Commit | null
Résultat Gitonomy\Git\Commit | null

getCommitMessage() public méthode

Gets the commit message.
public getCommitMessage ( ) : string | null
Résultat string | null

getCommitSubjectMessage() public méthode

Gets the commit message.
public getCommitSubjectMessage ( ) : string | null
Résultat string | null

getCommitURL() public méthode

Get the commit URL to the commit associated with this deployment.
public getCommitURL ( ) : null | string
Résultat null | string

getDeploymentStrategy() public méthode

public getDeploymentStrategy ( ) : DeploymentStrategy
Résultat DeploymentStrategy

getFiniteState() public méthode

public getFiniteState ( )

getFullDeployMessages() public méthode

Elements of the array will be rendered literally.
public getFullDeployMessages ( ) : ArrayList
Résultat ArrayList

getMachine() public méthode

public getMachine ( )

getRepository() public méthode

Fetch the git repository
public getRepository ( ) : Repository | null
Résultat Gitonomy\Git\Repository | null

getSigFile() public méthode

public getSigFile ( )

getStatus() public méthode

public getStatus ( )

getTag() public méthode

Fetches the latest tag for the deployed commit
public getTag ( ) : Varchar | null
Résultat Varchar | null

getTags() public méthode

Return all tags for the deployed commit.
public getTags ( ) : ArrayList
Résultat ArrayList

log() public méthode

public log ( ) : DeploynautLogFile
Résultat DeploynautLogFile

logfile() protected méthode

Return a path to the log file.
protected logfile ( ) : string
Résultat string

setFiniteState() public méthode

public setFiniteState ( $state )

setResqueToken() public méthode

public setResqueToken ( $token )

setSignal() public méthode

Signal the worker to self-abort. If we had a reliable way of figuring out the right PID, we could posix_kill directly, but Resque seems to not provide a way to find out the PID from the job nor worker.
public setSignal ( $signal )