Ejemplo n.º 1
0
 private function startup(InputArgs $inputArgs)
 {
     $this->workingDir = getcwd();
     if ($inputArgs->getOption('colors') !== NULL && !$inputArgs->getOption('colors')) {
         Cli::$enableColors = FALSE;
     }
     if ($inputArgs->getOption('working-dir')) {
         $this->workingDir = realpath($inputArgs->getOption('working-dir'));
         if (!$this->workingDir) {
             $this->log(sprintf("Working dir '%s' does not exists.", $inputArgs->getOption('working-dir')), 'red');
             $this->terminate(255);
         }
     }
     if ($this->workingDir === __DIR__) {
         $this->log(sprintf("Working dir '%s' is directory with Genesis. You have to choose directory with build.", $this->workingDir), 'red');
         $this->terminate(255);
     }
 }