PHP 클래스 CapistranoDeploymentBackend

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

보호된 프로퍼티들

프로퍼티 타입 설명
$packageGenerator

공개 메소드들

메소드 설명
dataTransfer ( DNDataTransfer $dataTransfer, DeploynautLogFile $log )
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 for the given environment using the maintenance:disable Capistrano task.
enableMaintenance ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project ) Enable a maintenance page for the given environment using the maintenance:enable Capistrano task.
getCommand ( string $action, string $roles, DNEnvironment $environment, array | null $args = null, DeploynautLogFile $log ) : Process
getDeployOptions ( DNEnvironment $environment ) : ArrayList
getPackageGenerator ( )
ping ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project ) Check the status using the deploy:check capistrano method
planDeploy ( DNEnvironment $environment, array $options ) : DeploymentStrategy Create a deployment strategy.
rebuild ( DNEnvironment $environment, DeploynautLogFile $log ) Utility function for triggering the db rebuild and flush.
setPackageGenerator ( PackageGenerator $packageGenerator )

보호된 메소드들

메소드 설명
dataTransferBackup ( DNDataTransfer $dataTransfer, DeploynautLogFile $log ) Backs up database and/or assets to a designated folder, and packs up the files into a single sspak.
dataTransferRestore ( string $workingDir, DNDataTransfer $dataTransfer, DeploynautLogFile $log ) Extracts a *.sspak file referenced through the passed in $dataTransfer and pushes it to the environment referenced in $dataTransfer.
smokeTest ( DNEnvironment $environment, DeploynautLogFile $log ) : boolean This is mostly copy-pasted from Anthill/Smoketest.

비공개 메소드들

메소드 설명
deployRollback ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project, $options, $args )

메소드 상세

dataTransfer() 공개 메소드

public dataTransfer ( DNDataTransfer $dataTransfer, DeploynautLogFile $log )
$dataTransfer DNDataTransfer
$log DeploynautLogFile

dataTransferBackup() 보호된 메소드

Backs up database and/or assets to a designated folder, and packs up the files into a single sspak.
protected dataTransferBackup ( DNDataTransfer $dataTransfer, DeploynautLogFile $log )
$dataTransfer DNDataTransfer
$log DeploynautLogFile

dataTransferRestore() 보호된 메소드

Extracts a *.sspak file referenced through the passed in $dataTransfer and pushes it to the environment referenced in $dataTransfer.
protected dataTransferRestore ( string $workingDir, DNDataTransfer $dataTransfer, DeploynautLogFile $log )
$workingDir string Directory for the unpacked files.
$dataTransfer DNDataTransfer
$log DeploynautLogFile

deploy() 공개 메소드

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() 공개 메소드

Disable the maintenance page for the given environment using the maintenance:disable Capistrano task.
public disableMaintenance ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project )
$environment DNEnvironment
$log DeploynautLogFile
$project DNProject

enableMaintenance() 공개 메소드

Enable a maintenance page for the given environment using the maintenance:enable Capistrano task.
public enableMaintenance ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project )
$environment DNEnvironment
$log DeploynautLogFile
$project DNProject

getCommand() 공개 메소드

public getCommand ( string $action, string $roles, DNEnvironment $environment, array | null $args = null, DeploynautLogFile $log ) : Process
$action string Capistrano action to be executed
$roles string Defining a server role is required to target only the required servers.
$environment DNEnvironment
$args array | null
$log DeploynautLogFile
리턴 Symfony\Component\Process\Process

getDeployOptions() 공개 메소드

public getDeployOptions ( DNEnvironment $environment ) : ArrayList
$environment DNEnvironment
리턴 ArrayList

getPackageGenerator() 공개 메소드

public getPackageGenerator ( )

ping() 공개 메소드

Check the status using the deploy:check capistrano method
public ping ( DNEnvironment $environment, DeploynautLogFile $log, DNProject $project )
$environment DNEnvironment
$log DeploynautLogFile
$project DNProject

planDeploy() 공개 메소드

Create a deployment strategy.
public planDeploy ( DNEnvironment $environment, array $options ) : DeploymentStrategy
$environment DNEnvironment
$options array
리턴 DeploymentStrategy

rebuild() 공개 메소드

Also cleans up and generates new error pages.
public rebuild ( DNEnvironment $environment, DeploynautLogFile $log )
$environment DNEnvironment
$log DeploynautLogFile

setPackageGenerator() 공개 메소드

public setPackageGenerator ( PackageGenerator $packageGenerator )
$packageGenerator PackageGenerator

smokeTest() 보호된 메소드

This is mostly copy-pasted from Anthill/Smoketest.
protected smokeTest ( DNEnvironment $environment, DeploynautLogFile $log ) : boolean
$environment DNEnvironment
$log DeploynautLogFile
리턴 boolean

프로퍼티 상세

$packageGenerator 보호되어 있는 프로퍼티

protected $packageGenerator