PHP Класс REBELinBLUE\Deployer\Console\Commands\UpdateApp

Наследование: extends InstallApp
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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