PHP 클래스 DNDeployment

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

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
logfile ( ) : string Return a path to the log file.

메소드 상세

LogContent() 공개 메소드

public LogContent ( )

ResqueStatus() 공개 메소드

Resque job (DeployJob) will change statuses as part of its execution.
public ResqueStatus ( ) : string
리턴 string

canView() 공개 메소드

public canView ( $member = null )

enqueueDeployment() 공개 메소드

Start a resque job for this deployment
public enqueueDeployment ( ) : string
리턴 string Resque token

getChanges() 공개 메소드

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

getCommit() 공개 메소드

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

getCommitMessage() 공개 메소드

Gets the commit message.
public getCommitMessage ( ) : string | null
리턴 string | null

getCommitSubjectMessage() 공개 메소드

Gets the commit message.
public getCommitSubjectMessage ( ) : string | null
리턴 string | null

getCommitURL() 공개 메소드

Get the commit URL to the commit associated with this deployment.
public getCommitURL ( ) : null | string
리턴 null | string

getDeploymentStrategy() 공개 메소드

public getDeploymentStrategy ( ) : DeploymentStrategy
리턴 DeploymentStrategy

getFiniteState() 공개 메소드

public getFiniteState ( )

getFullDeployMessages() 공개 메소드

Elements of the array will be rendered literally.
public getFullDeployMessages ( ) : ArrayList
리턴 ArrayList

getMachine() 공개 메소드

public getMachine ( )

getRepository() 공개 메소드

Fetch the git repository
public getRepository ( ) : Repository | null
리턴 Gitonomy\Git\Repository | null

getSigFile() 공개 메소드

public getSigFile ( )

getStatus() 공개 메소드

public getStatus ( )

getTag() 공개 메소드

Fetches the latest tag for the deployed commit
public getTag ( ) : Varchar | null
리턴 Varchar | null

getTags() 공개 메소드

Return all tags for the deployed commit.
public getTags ( ) : ArrayList
리턴 ArrayList

log() 공개 메소드

public log ( ) : DeploynautLogFile
리턴 DeploynautLogFile

logfile() 보호된 메소드

Return a path to the log file.
protected logfile ( ) : string
리턴 string

setFiniteState() 공개 메소드

public setFiniteState ( $state )

setResqueToken() 공개 메소드

public setResqueToken ( $token )

setSignal() 공개 메소드

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 )