Class: GemFast::NoUnzipCurlDownloadStrategy

Inherits:
CurlDownloadStrategy show all
Defined in:
lib/gem-fast/remote_fetcher.rb

Overview

Use this strategy to download but not unzip a file. Useful for installing jars.

Instance Attribute Summary

Attributes inherited from CurlDownloadStrategy

#tarball_path

Instance Method Summary collapse

Methods inherited from CurlDownloadStrategy

#_fetch, #cached_location, #fetch, #initialize

Methods inherited from AbstractDownloadStrategy

#expand_safe_system_args, #initialize, #quiet_safe_system

Methods included from Util

#curl, #not_install_curl, #safe_system, #system

Constructor Details

This class inherits a constructor from GemFast::CurlDownloadStrategy

Instance Method Details

#stageObject



161
162
163
# File 'lib/gem-fast/remote_fetcher.rb', line 161

def stage
  FileUtils.cp @tarball_path, File.basename(@url)
end