PHP Interface DeploymentBackend

Datei anzeigen Open project: silverstripe/deploynaut

Public Methods

Method Description
dataTransfer ( DNDataTransfer $dataTransfer, DeploynautLogFile $log ) Transfer data from an environment to a local file, or from a local file back into an environment. See {@link DNDataTransfer} for details.
deploy ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project, array $options ) Deploy the given build to the given environment.
disableMaintenance ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project ) Disable the maintenance page
enableMaintenance ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project ) Put put the maintenance page
getDeployOptions ( DNEnvironment $environment ) : ArrayList Return a list of {@link DeployOption} for use on this environment.
ping ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project ) Checks the status of the environment
planDeploy ( DNEnvironment $environment, array $options ) : DeploymentStrategy Creates a deployment strategy that can be used to do some pre-flight checks.

Method Details

dataTransfer() public method

Transfer data from an environment to a local file, or from a local file back into an environment. See {@link DNDataTransfer} for details.
public dataTransfer ( DNDataTransfer $dataTransfer, DeploynautLogFile $log )
$dataTransfer DNDataTransfer
$log DeploynautLogFile

deploy() public method

Deploy the given build to the given environment.
public deploy ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project, array $options )
$environment DNEnvironment
$log DeploynautLogFile
$project DNProject
$options array

disableMaintenance() public method

Disable the maintenance page
public disableMaintenance ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project )
$environment DNEnvironment
$log DeploynautLogFile
$project DNProject

enableMaintenance() public method

Put put the maintenance page
public enableMaintenance ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project )
$environment DNEnvironment
$log DeploynautLogFile
$project DNProject

getDeployOptions() public method

Return a list of {@link DeployOption} for use on this environment.
public getDeployOptions ( DNEnvironment $environment ) : ArrayList
$environment DNEnvironment
return ArrayList

ping() public method

Checks the status of the environment
public ping ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project )
$environment DNEnvironment
$log DeploynautLogFile
$project DNProject

planDeploy() public method

Creates a deployment strategy that can be used to do some pre-flight checks.
public planDeploy ( DNEnvironment $environment, array $options ) : DeploymentStrategy
$environment DNEnvironment
$options array An unsanitised array of request parameters from $request->requestVars.
return DeploymentStrategy