Class: Homebrew::API::SourceDownload Private
- Includes:
- Downloadable
- Defined in:
- api/source_download.rb
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.
Instance Attribute Summary
Attributes included from Downloadable
#checksum, #mirrors, #phase, #url
Instance Method Summary collapse
- #cache ⇒ Pathname private
- #download_queue_type ⇒ String private
- #downloader ⇒ API::SourceDownloadStrategy private
- #initialize(url, checksum, mirrors: [], cache: nil) ⇒ void constructor private
- #symlink_location ⇒ Pathname private
Methods included from Downloadable
#cached_download, #clear_cache, #download_queue_name, #download_strategy, #downloaded!, #downloaded?, #downloading!, #extracting!, #fetch, #fetched_size, #freeze, #initialize_dup, #total_size, #verify_download_integrity, #version
Methods included from Utils::Output::Mixin
#odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_duration, #pretty_installed, #pretty_outdated, #pretty_uninstalled
Methods included from Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Constructor Details
#initialize(url, checksum, mirrors: [], cache: nil) ⇒ void
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.
26 27 28 29 30 31 32 |
# File 'api/source_download.rb', line 26 def initialize(url, checksum, mirrors: [], cache: nil) super() @url = T.let(URL.new(url, using: API::SourceDownloadStrategy), URL) @checksum = checksum @mirrors = mirrors @cache = cache end |
Instance Method Details
#cache ⇒ Pathname
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.
43 44 45 |
# File 'api/source_download.rb', line 43 def cache @cache || super end |
#download_queue_type ⇒ String
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.
40 |
# File 'api/source_download.rb', line 40 def download_queue_type = "API Source" |
#downloader ⇒ API::SourceDownloadStrategy
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.
35 36 37 |
# File 'api/source_download.rb', line 35 def downloader T.cast(super, API::SourceDownloadStrategy) end |
#symlink_location ⇒ Pathname
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.
48 49 50 |
# File 'api/source_download.rb', line 48 def symlink_location downloader.symlink_location end |