Exemplo n.º 1
0
 /**
  * Allows the UI to poll for the latest running and pending builds.
  */
 public function latest()
 {
     $rtn = array('pending' => $this->formatBuilds($this->buildStore->getByStatus(Build::STATUS_NEW)), 'running' => $this->formatBuilds($this->buildStore->getByStatus(Build::STATUS_RUNNING)));
     $response = new JsonResponse();
     $response->setContent($rtn);
     return $response;
 }
Exemplo n.º 2
0
 /**
  * Allows the UI to poll for the latest running and pending builds.
  */
 public function latest()
 {
     $rtn = array('pending' => $this->formatBuilds($this->buildStore->getByStatus(Build::STATUS_NEW)), 'running' => $this->formatBuilds($this->buildStore->getByStatus(Build::STATUS_RUNNING)));
     if ($this->request->isAjax()) {
         die(json_encode($rtn));
     }
 }