PHP Class DNCreateEnvironment

Inheritance: extends DataObject
Show file Open project: silverstripe/deploynaut Class Usage Examples

Public Methods

Method Description
Link ( ) : string
LogContent ( )
LogLink ( ) : string
Name ( ) : string
ResqueStatus ( ) : string Returns the status of the resque job
canView ( $member = null ) : boolean
createEnvironment ( )
getBackend ( ) : EnvironmentCreateBackend | null Fetches the EnvironmentCreateBackend based on the EnvironmentType saved to this job.
log ( ) : DeploynautLogFile
map_resque_status ( integer $int ) : string
start ( )

Protected Methods

Method Description
enqueueCreation ( ) : string Start a resque job for this creation.
logfile ( ) : string Return a path to the log file.

Method Details

LogContent() public method

public LogContent ( )

Name() public method

public Name ( ) : string
return string

ResqueStatus() public method

Returns the status of the resque job
public ResqueStatus ( ) : string
return string

canView() public method

public canView ( $member = null ) : boolean
return boolean

createEnvironment() public method

public createEnvironment ( )

enqueueCreation() protected method

Start a resque job for this creation.
protected enqueueCreation ( ) : string
return string Resque token

getBackend() public method

Fetches the EnvironmentCreateBackend based on the EnvironmentType saved to this job.
public getBackend ( ) : EnvironmentCreateBackend | null
return EnvironmentCreateBackend | null

log() public method

public log ( ) : DeploynautLogFile
return DeploynautLogFile

logfile() protected method

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

map_resque_status() public static method

public static map_resque_status ( integer $int ) : string
$int integer
return string

start() public method

public start ( )