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

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:

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_as_dependency? || !formula.any_version_installed?)
end