Module: FormulaVersions::LegacySoftwareSpec

Extended by:
T::Helpers
Includes:
LegacyChecksums
Defined in:
formula_versions.rb

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

Instance Method Summary collapse

Methods included from LegacyChecksums

#md5, #sha1

Instance Method Details

#patch(strip = :p1, src = nil, &block) ⇒ 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.

This method returns an undefined value.

Parameters:



54
55
56
# File 'formula_versions.rb', line 54

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

#resource(name = nil, klass = Resource, &block) ⇒ Resource?

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:

  • name (String, nil) (defaults to: nil)
  • klass (T.class_of(Resource)) (defaults to: Resource)
  • block (T.proc.bind(Resource).void, nil)

Returns:



46
47
48
# File 'formula_versions.rb', line 46

def resource(name = nil, klass = Resource, &block)
  super(name, (klass == Resource) ? LegacyResource : klass, &block)
end