Example #1
0
 private function fetchGitTemplate($gitUrl)
 {
     $this->logger->notice('Fetching template from {url}', ['url' => $gitUrl]);
     $directory = $this->createTempDirectory('couscous_template_');
     $this->git->cloneRepository($gitUrl, $directory);
     return $directory;
 }
Example #2
0
 private function cloneRepository(OutputInterface $output, $repositoryUrl, $tmpDirectory)
 {
     $output->writeln("Cloning <info>{$repositoryUrl}</info> in <info>{$tmpDirectory}</info>");
     $this->git->cloneRepository($repositoryUrl, $tmpDirectory);
 }