Esempio n. 1
0
 /**
  * Execute module
  * 
  * @param string $module
  * @return void
  */
 private function executeModule($module)
 {
     // pass original vars in to module constructor
     $this->abstractModule = new $module($this->argc, $this->argv);
     $lock = $this->abstractModule->isLocked();
     if ($lock === false) {
         $this->abstractModule->setupOptions();
         $this->abstractModule->execute();
         $this->abstractModule->unlock();
     } else {
         CliColors::render("Process {$lock[0]} already locked at {$lock[1]}", CliColors::FG_WHITE, CliColors::BG_RED, true);
     }
 }
Esempio n. 2
0
 /**
  * Set verbose
  * 
  * @return void
  */
 protected function verbose()
 {
     print "Verbose mode ";
     CliColors::render("ON", CliColors::FG_GREEN, null, true);
     $this->verbose = true;
 }