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);
 }
Exemple #2
0
 public function __construct($recipe)
 {
     $this->recipe = $recipe;
     $this->path = Config::getRecipeDir($recipe);
 }