Exemplo n.º 1
0
 public function execute()
 {
     $plugins = $this->__getPluginList('All');
     if (!empty($this->args)) {
         if (strtolower($this->args[0]) == 'all-core') {
             $this->args = $this->__getPluginList('Core');
         }
         foreach ($this->args as $plugin) {
             $plugin = Inflector::camelize($plugin);
             if (in_array($plugin, $plugins) || strtolower($plugin) == 'app') {
                 $this->generate($plugin);
             } else {
                 $this->out($plugin . ' plugin not found');
             }
         }
         exit(0);
     }
     $this->generate(current(parent::_selectPlugins()));
 }