Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 protected function getFileName(Package $package, $path)
 {
     return parent::getFileName($package, $path) . '.tgz';
 }