Exemple #1
0
 /**
  * @return string
  */
 protected function setRecipe()
 {
     if (!is_null($this->command->option('recipe'))) {
         return $this->command->option('recipe');
     }
     $recipe = $this->command->argument('recipe-name');
     $recipePath = $this->configurator->getRecipePath();
     return $recipePath . '/' . $recipe . '/' . self::RECIPEFILE;
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function run()
 {
     $recipePath = $this->command->argument('path');
     $this->configurator->setup($recipePath);
     $this->command->say('info', "Your recipe path is now set to {$recipePath}");
 }