REBELinBLUE\Deployer\Console\Commands\UpdateApp::hasRunningDeployments PHP 메소드

hasRunningDeployments() 보호된 메소드

Checks if there are any running or pending deployments.
protected hasRunningDeployments ( ) : boolean
리턴 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;
    }