Class: Utils::Bottles::Collector Private

Inherits:
Object
  • Object
show all
Extended by:
Forwardable, T::Sig
Defined in:
utils/bottles.rb,
extend/os/mac/utils/bottles.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.

Collector for bottle specifications.

Instance Method Summary collapse

Constructor Details

#initializevoid

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.



227
228
229
# File 'utils/bottles.rb', line 227

def initialize
  @checksums = {}
end

Instance Method Details

#fetch_checksum_for(tag, no_older_versions: false) ⇒ Array(Checksum, Symbol, [Symbol, 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.

Parameters:

Returns:



239
240
241
242
243
# File 'utils/bottles.rb', line 239

def fetch_checksum_for(tag, no_older_versions: false)
  tag = Utils::Bottles::Tag.from_symbol(tag) if tag.is_a?(Symbol)
  tag = find_matching_tag(tag, no_older_versions: no_older_versions)&.to_sym
  return self[tag][:checksum], tag, self[tag][:cellar] if tag
end