PHP 클래스 REBELinBLUE\Deployer\Console\Commands\UpdateApp

상속: extends InstallApp
파일 보기 프로젝트 열기: rebelinblue/deployer

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The console command description.
$signature string The name and signature of the console command.

공개 메소드들

메소드 설명
handle ( ) : mixed Execute the console command.

보호된 메소드들

메소드 설명
backupDatabase ( ) Backup the database.
composerOutdated ( ) : boolean Check if the composer autoload.php has been updated in the last 10 minutes, if not we assume composer install has not be run recently.
hasRunningDeployments ( ) : boolean Checks if there are any running or pending deployments.
nodeOutdated ( ) : boolean Check if the a .install file in the node_modules folder has been updated in the last 10 minutes, if not we assume npm install has not been run recently as it is touched by "postinstall"
restartQueue ( ) Restarts the queues.
restartSocket ( ) Restarts the socket server.
updateConfiguration ( ) Checks for new configuration values in .env.example and copy them to .env.

비공개 메소드들

메소드 설명
verifyInstalled ( ) : boolean Ensures that Deployer has actually been installed.

메소드 상세

backupDatabase() 보호된 메소드

Backup the database.
protected backupDatabase ( )

composerOutdated() 보호된 메소드

Check if the composer autoload.php has been updated in the last 10 minutes, if not we assume composer install has not be run recently.
protected composerOutdated ( ) : boolean
리턴 boolean

handle() 공개 메소드

Execute the console command.
public handle ( ) : mixed
리턴 mixed

hasRunningDeployments() 보호된 메소드

Checks if there are any running or pending deployments.
protected hasRunningDeployments ( ) : boolean
리턴 boolean

nodeOutdated() 보호된 메소드

Check if the a .install file in the node_modules folder has been updated in the last 10 minutes, if not we assume npm install has not been run recently as it is touched by "postinstall"
protected nodeOutdated ( ) : boolean
리턴 boolean

restartQueue() 보호된 메소드

Restarts the queues.
protected restartQueue ( )

restartSocket() 보호된 메소드

Restarts the socket server.
protected restartSocket ( )

updateConfiguration() 보호된 메소드

Checks for new configuration values in .env.example and copy them to .env.
protected updateConfiguration ( )

프로퍼티 상세

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

The console command description.
protected string $description
리턴 string

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

The name and signature of the console command.
protected string $signature
리턴 string