protected hasRunningDeployments ( ) : boolean | ||
return | boolean |
protected function hasRunningDeployments()
{
$deploys = Deployment::whereIn('status', [Deployment::DEPLOYING, Deployment::PENDING])->count();
if ($deploys > 0) {
$this->block(['Deployments in progress', PHP_EOL, 'There are still running deployments, please wait for them to finish before updating.']);
return true;
}
return false;
}