Class: FormulaVersions::LegacyResource

Inherits:
Resource show all
Includes:
LegacyChecksums
Defined in:
formula_versions.rb

This class is part of an internal API. This class may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Constant Summary

Constants inherited from Resource

Resource::Owner

Instance Attribute Summary

Attributes inherited from Resource

#checksum, #download_strategy, #name, #owner, #patches, #source_modified_time

Attributes included from Downloadable

#checksum, #mirrors, #phase, #url

Instance Method Summary collapse

Methods included from LegacyChecksums

#md5, #sha1

Methods inherited from Resource

#apply_patches, #download_queue_type, #fetch, #fetch_patches, #files, #freeze, #initialize, #initialize_dup, #livecheck, #livecheck_defined?, #mirror, #on_arch_conditional, #on_arm, #on_big_sur, #on_golden_gate, #on_intel, #on_linux, #on_macos, #on_monterey, #on_sequoia, #on_sonoma, #on_system, #on_system_conditional, #on_tahoe, #on_ventura, #prepare_patches, #sha256, #specs, #stage, #unpack, #url, #using, #version

Methods included from Utils::Output::Mixin

#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_cannot_install, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_uninstalled, #pretty_unmarked, #pretty_upgradable, #pretty_warning

Methods included from OnSystem::MacOSAndLinux

included, #on_arch_conditional, #on_macos, #on_system_conditional

Methods included from Downloadable

#cached_download, #clear_cache, #download_queue_message, #download_queue_name, #download_queue_type, #download_strategy, #downloaded!, #downloaded?, #downloaded_and_valid?, #downloader, #downloading!, #extracting!, #fetch, #fetched_size, #freeze, #initialize, #initialize_dup, #stage_from_download_queue, #stage_from_download_queue?, #staged_path_from_download_queue, #total_size, verification_cache, #verified!, #verify_download_integrity, #verifying!, #version

Methods included from Context

current, current=, #debug?, #deferred_environment_expansion?, #quiet?, #verbose?, #with_context

Constructor Details

This class inherits a constructor from Resource

Instance Method Details

#patch(strip = :p1, src = nil, &block) ⇒ Array<EmbeddedPatch, ExternalPatch>

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:



31
32
33
# File 'formula_versions.rb', line 31

def patch(strip = :p1, src = nil, &block)
  super(strip, src, &(FormulaVersions.legacy_patch_block(block) if block))
end