Pickle\Package\Convey\Command\Pickle::fetch PHP Method

fetch() protected method

protected fetch ( $target )
    protected function fetch($target)
    {
        $package = Package::factory($this->name, $this->version, $this->prettyVersion);
        $package->setSourceType($this->type);
        $package->setSourceUrl($this->url);
        $package->setSourceReference($this->version);
        $package->setRootDir($target);
        $downloader = new GitDownloader($this->io, new Config());
        if (null !== $downloader) {
            $downloader->download($package, $target);
        }
    }