コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: Server.php プロジェクト: nsautomaton/thalassa
 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;
 }