PHP Class REBELinBLUE\Deployer\Console\Commands\UpdateApp

Inheritance: extends InstallApp
Afficher le fichier Open project: rebelinblue/deployer

Protected Properties

Свойство Type Description
$description string The console command description.
$signature string The name and signature of the console command.

Méthodes publiques

Méthode Description
handle ( ) : mixed Execute the console command.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
verifyInstalled ( ) : boolean Ensures that Deployer has actually been installed.

Method Details

backupDatabase() protected méthode

Backup the database.
protected backupDatabase ( )

composerOutdated() protected méthode

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
Résultat boolean

handle() public méthode

Execute the console command.
public handle ( ) : mixed
Résultat mixed

hasRunningDeployments() protected méthode

Checks if there are any running or pending deployments.
protected hasRunningDeployments ( ) : boolean
Résultat boolean

nodeOutdated() protected méthode

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
Résultat boolean

restartQueue() protected méthode

Restarts the queues.
protected restartQueue ( )

restartSocket() protected méthode

Restarts the socket server.
protected restartSocket ( )

updateConfiguration() protected méthode

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

Property Details

$description protected_oe property

The console command description.
protected string $description
Résultat string

$signature protected_oe property

The name and signature of the console command.
protected string $signature
Résultat string