Class: Homebrew::DevCmd::GenerateFormulaFeeds::Feeds Private
- Inherits:
-
Utils::Analytics::PackageFeeds
- Object
- Utils::Analytics::PackageFeeds
- Homebrew::DevCmd::GenerateFormulaFeeds::Feeds
- Defined in:
- dev-cmd/generate-formula-feeds.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.
Supplies formula metadata to the shared feed generator.
Constant Summary
Constants inherited from Utils::Analytics::PackageFeeds
Utils::Analytics::PackageFeeds::BATCH_SIZE, Utils::Analytics::PackageFeeds::Builds, Utils::Analytics::PackageFeeds::Entry, Utils::Analytics::PackageFeeds::LIMITS
Instance Method Summary collapse
Methods inherited from Utils::Analytics::PackageFeeds
#builds, #changes, #generate, #initialize, write
Constructor Details
This class inherits a constructor from Utils::Analytics::PackageFeeds
Instance Method Details
#package_path?(path) ⇒ Boolean
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.
41 42 43 |
# File 'dev-cmd/generate-formula-feeds.rb', line 41 def package_path?(path) CoreTap.instance.formula_file?(path.delete_prefix("Library/")) end |
#read_builds(path, blob, source) ⇒ Builds
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.
32 33 34 35 36 37 38 |
# File 'dev-cmd/generate-formula-feeds.rb', line 32 def read_builds(path, blob, source) @history.builds(path, source).tap do |builds| if builds.values.any?(&:error) raise "Cannot read formula metadata for #{path} at #{blob}" end end end |