Class: NoUnzipCurlDownloadStrategy

Inherits:
CurlDownloadStrategy show all
Defined in:
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, #tarball_path, #temporary_path

Attributes inherited from AbstractDownloadStrategy

#cached_location, #meta, #name, #resource, #shutup, #version

Instance Method Summary collapse

Methods inherited from CurlDownloadStrategy

#cached_location, #clear_cache, #fetch, #initialize

Methods inherited from AbstractDownloadStrategy

#clear_cache, #expand_safe_system_args, #fetch, #initialize, #ohai, #puts, #quiet_safe_system, #safe_system, #shutup!, #source_modified_time

Methods included from FileUtils

#make, mkdir, mktemp, #old_mkdir, #old_ruby, #ruby, #scons, #xcodebuild

Constructor Details

This class inherits a constructor from CurlDownloadStrategy

Instance Method Details

#stageObject



436
437
438
# File 'Library/Homebrew/download_strategy.rb', line 436

def stage
  cp cached_location, basename_without_params, preserve: true
end