Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     try {
         $remoteUrl = $this->git->getRemoteUrl();
     } catch (\Exception $e) {
         $remoteUrl = null;
     }
     $this->setName('deploy')->setDescription('Generate and deploy the website')->addArgument('source', InputArgument::OPTIONAL, 'Repository you want to generate.', getcwd())->addOption('repository', null, InputOption::VALUE_REQUIRED, 'Target repository in which to deploy the website.', $remoteUrl)->addOption('branch', null, InputOption::VALUE_REQUIRED, 'Target branch in which to deploy the website.', 'gh-pages');
 }