Example #1
0
 protected function fetch($target)
 {
     $package = Package::factory($this->name, $this->version, $this->prettyVersion);
     $package->setDistUrl($this->url);
     $package->setRootDir($target);
     $downloader = new TGZDownloader($this->io, new Config());
     if (null !== $downloader) {
         $downloader->download($package, $target);
     }
 }
Example #2
0
 protected function getFileName(Package $package, $path)
 {
     return parent::getFileName($package, $path) . '.tgz';
 }