コード例 #1
0
ファイル: BuildRecipe.php プロジェクト: beejhuff/RoboCI
 public function run()
 {
     if (!$this->path) {
         throw new TaskException($this, "Recipe for {$this->recipe} not found in " . Config::getUserRecipesDir());
     }
     return parent::run();
 }
コード例 #2
0
ファイル: CreateStartScript.php プロジェクト: beejhuff/RoboCI
 public function linkService($service)
 {
     $linkDir = Config::getRecipeDir($service);
     if (!file_exists($linkDir . DIRECTORY_SEPARATOR . Config::LINK_SCRIPT)) {
         return $this;
     }
     $this->comment("linking {$service} service");
     $linkScript = file_get_contents($linkDir . DIRECTORY_SEPARATOR . Config::LINK_SCRIPT);
     return $this->line($linkScript);
 }