PHP Class DeployDispatcher

Inheritance: extends Dispatcher
Mostra file Open project: silverstripe/deploynaut Class Usage Examples

Protected Properties

Property Type Description
$environment DNEnvironment
$project DNProject

Public Methods

Method Description
Link ( string $action = '' ) : string
abort ( SS_HTTPRequest $request ) : SS_HTTPResponse
can_abort_deployment ( DNEnvironment $environment, Member $member = null ) : boolean
createdeployment ( SS_HTTPRequest $request ) : SS_HTTPResponse Create deployment. Can't use {@link create()} as it's taken by Object.
delete ( SS_HTTPRequest $request ) : SS_HTTPResponse
getModel ( string $name = '' ) : array
history ( SS_HTTPRequest $request ) : SS_HTTPResponse
index ( SS_HTTPRequest $request ) : HTMLText | SS_HTTPResponse
init ( )
log ( SS_HTTPRequest $request ) : SS_HTTPResponse
redeploy ( SS_HTTPRequest $request ) : SS_HTTPResponse
show ( SS_HTTPRequest $request ) : SS_HTTPResponse
start ( SS_HTTPRequest $request ) : SS_HTTPResponse
summary ( SS_HTTPRequest $request ) : SS_HTTPResponse Return a summary of the deployment changes without creating the deployment.

Protected Methods

Method Description
canCompareCodeVersions ( ArrayData $interface, $changes ) : boolean
createStrategy ( $options ) : DeploymentStrategy
validateDeployment ( DNDeployment $deployment ) : null | SS_HTTPResponse Check if a DNDeployment exists and do permission checks on it. If there is something wrong it will return an APIResponse with the error, otherwise null.

Method Details

abort() public method

public abort ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

canCompareCodeVersions() protected method

protected canCompareCodeVersions ( ArrayData $interface, $changes ) : boolean
$interface ArrayData
$changes
return boolean

can_abort_deployment() public static method

public static can_abort_deployment ( DNEnvironment $environment, Member $member = null ) : boolean
$environment DNEnvironment
$member Member
return boolean

createStrategy() protected method

protected createStrategy ( $options ) : DeploymentStrategy
return DeploymentStrategy

createdeployment() public method

Create deployment. Can't use {@link create()} as it's taken by Object.
public createdeployment ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

delete() public method

public delete ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

getModel() public method

public getModel ( string $name = '' ) : array
$name string
return array

history() public method

public history ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

index() public method

public index ( SS_HTTPRequest $request ) : HTMLText | SS_HTTPResponse
$request SS_HTTPRequest
return HTMLText | SS_HTTPResponse

init() public method

public init ( )

log() public method

public log ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

redeploy() public method

public redeploy ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

show() public method

public show ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

start() public method

public start ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

summary() public method

Return a summary of the deployment changes without creating the deployment.
public summary ( SS_HTTPRequest $request ) : SS_HTTPResponse
$request SS_HTTPRequest
return SS_HTTPResponse

validateDeployment() protected method

Check if a DNDeployment exists and do permission checks on it. If there is something wrong it will return an APIResponse with the error, otherwise null.
protected validateDeployment ( DNDeployment $deployment ) : null | SS_HTTPResponse
$deployment DNDeployment
return null | SS_HTTPResponse

Property Details

$environment protected_oe property

protected DNEnvironment $environment
return DNEnvironment

$project protected_oe property

protected DNProject $project
return DNProject