Class: LocalBottleDownloadStrategy

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

Overview

This strategy extracts local binary packages.

Instance Attribute Summary collapse

Attributes inherited from AbstractDownloadStrategy

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

Instance Method Summary collapse

Methods inherited from AbstractDownloadStrategy

#clear_cache, #expand_safe_system_args, #fetch, #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

#initialize(path) ⇒ LocalBottleDownloadStrategy

Returns a new instance of LocalBottleDownloadStrategy



453
454
455
# File 'Library/Homebrew/download_strategy.rb', line 453

def initialize(path)
  @cached_location = path
end

Instance Attribute Details

#cached_locationObject (readonly)

Returns the value of attribute cached_location



451
452
453
# File 'Library/Homebrew/download_strategy.rb', line 451

def cached_location
  @cached_location
end

Instance Method Details

#stageObject



457
458
459
460
# File 'Library/Homebrew/download_strategy.rb', line 457

def stage
  ohai "Pouring #{cached_location.basename}"
  super
end