Ejemplo n.º 1
0
 function commandExecution($aplication, $command)
 {
     ignore_user_abort(true);
     @set_time_limit(0);
     $fopen = $this->fileNameGen($aplication, $command);
     $runner = new Executioner();
     $runner->setApplication($aplication)->addArgument($command)->addArgument('> ' . $fopen)->execute();
     $fileopen = fopen('./' . $fopen, "a+");
     fwrite($fileopen, "\n" . base64_encode("done"));
     fclose($fileopen);
     return true;
 }
Ejemplo n.º 2
0
 /**
  * Requests a re-newed SSL certificate for a given site.
  * @return void
  */
 public function renewLetsEncryptCert()
 {
     $this->validateArguments();
     $letsencrypt = Executioner::make(self::LETSENCRYPT_BIN);
     $letsencrypt->addArgument('renew')->execute();
     $this->writeln('Done!');
 }