Spec-Zone.ru › Homebrew

Module: OS::Mac::FormulaInstaller Private

Extended by:
T::Helpers
Included in:
FormulaInstaller
Defined in:
extend/os/mac/formula_installer.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

  • #fresh_install?(formula) ⇒ Boolean? private

Instance Method Details

#fresh_install?(formula) ⇒ 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)

Returns:

  • (Boolean, nil)


12
13
14
15
# File 'extend/os/mac/formula_installer.rb', line 12

def fresh_install?(formula)
  !::Homebrew::EnvConfig.developer? && !OS::Mac.version.outdated_release? &&
    (installed_on_request? || !formula.any_version_installed?)
end

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

Spec-Zone.ru

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