REBELinBLUE\Deployer\Contracts\Repositories\DeploymentRepositoryInterface::getRunning PHP Method

getRunning() public method

public getRunning ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection
    public function getRunning();

Usage Example

Example #1
0
 /**
  * Generates the pending and deploying projects for the view.
  *
  * @param View $view
  */
 public function compose(View $view)
 {
     $pending = $this->deploymentRepository->getPending();
     $view->with('pending', $pending);
     $view->with('pending_count', count($pending));
     $deploying = $this->deploymentRepository->getRunning();
     $view->with('deploying', $deploying);
     $view->with('deploying_count', count($deploying));
 }