예제 #1
0
파일: Tgz.php 프로젝트: jingdor/pickle
 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);
     }
 }
예제 #2
0
 protected function getFileName(Package $package, $path)
 {
     return parent::getFileName($package, $path) . '.tgz';
 }