Class: LocalBottleDownloadStrategy Private
- Inherits:
-
AbstractFileDownloadStrategy
- Object
- AbstractDownloadStrategy
- AbstractFileDownloadStrategy
- LocalBottleDownloadStrategy
- Defined in:
- download_strategy.rb
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Strategy for extracting local binary packages.
Instance Attribute Summary
Attributes inherited from AbstractDownloadStrategy
#cache, #cached_location, #url
Instance Method Summary collapse
- #clear_cache ⇒ Object private
-
#initialize(path) ⇒ LocalBottleDownloadStrategy
constructor
private
A new instance of LocalBottleDownloadStrategy.
Methods inherited from AbstractFileDownloadStrategy
#basename, #cached_location, #symlink_location, #temporary_path
Methods inherited from AbstractDownloadStrategy
#basename, #fetch, #quiet!, #quiet?, #source_modified_time, #stage
Methods included from SystemCommand::Mixin
#system_command, #system_command!
Methods included from Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Constructor Details
#initialize(path) ⇒ LocalBottleDownloadStrategy
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns a new instance of LocalBottleDownloadStrategy.
711 712 713 714 |
# File 'download_strategy.rb', line 711 def initialize(path) # rubocop:disable Lint/MissingSuper @cached_location = path extend Pourable end |
Instance Method Details
#clear_cache ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
716 717 718 |
# File 'download_strategy.rb', line 716 def clear_cache # Path is used directly and not cached. end |