function canPiston()
 {
     $errors = array();
     if (!SVN::available()) {
         $errors[] = "Subversion is not available.";
     }
     if (!Piston::available()) {
         $errors[] = "Piston is not available.";
     }
     if (!SVN::isSVNRepo() && !GIT::isGITRepo()) {
         $errors[] = "Piston only works on svn working copies and git repositories.";
     }
     return $errors;
 }
Exemple #2
0
 private function spawnThread()
 {
     $this->i !== 0 ? $n = $this->i++ : ($n = $this->i);
     $spawned = new Piston();
     $this->pool = $spawned;
     $spawned->start();
     var_dump($this->pool);
     return $spawned;
 }