REBELinBLUE\Deployer\Console\Commands\UpdateApp::hasRunningDeployments PHP Method

hasRunningDeployments() protected method

Checks if there are any running or pending deployments.
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;
    }