Spec-Zone.ru › Homebrew

Module: OS::Linux::TestBot::FormulaeDependents Private

Extended by:
T::Helpers
Included in:
Homebrew::TestBot::FormulaeDependents
Defined in:
extend/os/linux/test_bot.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

  • #build_dependent_from_source?(dependent) ⇒ Boolean private
  • #skip_recursive_dependents?(formula, args:) ⇒ Boolean private

Instance Method Details

#build_dependent_from_source?(dependent) ⇒ 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.

Parameters:

  • dependent (Formula)

Returns:

  • (Boolean)


54
55
56
# File 'extend/os/linux/test_bot.rb', line 54

def build_dependent_from_source?(dependent)
  dependent.requirements.include?(LinuxRequirement.new)
end

#skip_recursive_dependents?(formula, args:) ⇒ 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.

Parameters:

  • formula (Formula)
  • args (::Homebrew::Cmd::TestBotCmd::Args)

Returns:

  • (Boolean)


49
50
51
# File 'extend/os/linux/test_bot.rb', line 49

def skip_recursive_dependents?(formula, args:)
  super || formula.requirements.exclude?(LinuxRequirement.new)
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/OS/Linux/TestBot/FormulaeDependents.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API