示例#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';
 }