PHP Class REBELinBLUE\Deployer\Console\Commands\UpdateApp

Inheritance: extends InstallApp
Show file Open project: rebelinblue/deployer

Protected Properties

Property Type Description
$description string The console command description.
$signature string The name and signature of the console command.

Public Methods

Method Description
handle ( ) : mixed Execute the console command.

Protected Methods

Method 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

Method Description
verifyInstalled ( ) : boolean Ensures that Deployer has actually been installed.

Method Details

backupDatabase() protected method

Backup the database.
protected backupDatabase ( )

composerOutdated() protected method

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
return boolean

handle() public method

Execute the console command.
public handle ( ) : mixed
return mixed

hasRunningDeployments() protected method

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

nodeOutdated() protected method

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
return boolean

restartQueue() protected method

Restarts the queues.
protected restartQueue ( )

restartSocket() protected method

Restarts the socket server.
protected restartSocket ( )

updateConfiguration() protected method

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

Property Details

$description protected property

The console command description.
protected string $description
return string

$signature protected property

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