Beispiel #1
0
 protected function configure()
 {
     if (!self::$file) {
         self::$file = realpath(__DIR__ . '/../../../../bin/.files/cache') . '/.versions';
     }
     $this->setName('versions')->setDescription('Show available versions in Joomla Git repository')->addOption('refresh', null, InputOption::VALUE_NONE, 'Refresh the versions cache')->addOption('clear-cache', null, InputOption::VALUE_NONE, 'Clear the downloaded files cache');
 }
 public function setRepository($repository)
 {
     if ($repository == 'platform') {
         $repository = 'git@github.com:joomlatools/joomlatools-platform.git';
     }
     $this->repository = $repository;
     self::$file = realpath(__DIR__ . '/../../../../bin/.files/cache') . '/' . md5($this->repository) . '/.versions';
 }