public function run() { if (!$this->path) { throw new TaskException($this, "Recipe for {$this->recipe} not found in " . Config::getUserRecipesDir()); } return parent::run(); }
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); }