Class: NoUnzipCurlDownloadStrategy

Inherits:
CurlDownloadStrategy show all
Defined in:
brew/Library/Homebrew/download_strategy.rb

Overview

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

Instance Attribute Summary

Attributes inherited from CurlDownloadStrategy

#mirrors

Attributes inherited from AbstractDownloadStrategy

#cache, #cached_location, #source_modified_time, #url

Instance Method Summary collapse

Methods inherited from CurlDownloadStrategy

#clear_cache, #fetch, #initialize

Methods inherited from AbstractFileDownloadStrategy

#basename, #cached_location, #symlink_location, #temporary_path

Methods inherited from AbstractDownloadStrategy

#basename, #clear_cache, #fetch, #initialize, #ohai, #puts, #shutup!

Constructor Details

This class inherits a constructor from CurlDownloadStrategy

Instance Method Details

#stageObject



495
496
497
498
499
# File 'brew/Library/Homebrew/download_strategy.rb', line 495

def stage
  UnpackStrategy::Uncompressed.new(cached_location)
                              .extract(basename: basename,
                                       verbose:  ARGV.verbose? && !shutup)
end