Module: Homebrew::Diagnostic Private

Defined in:
Library/Homebrew/diagnostic.rb,
Library/Homebrew/extend/os/mac/diagnostic.rb,
Library/Homebrew/extend/os/linux/diagnostic.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Module containing diagnostic checks.

Defined Under Namespace

Classes: Checks, Volumes

Class Method Summary collapse

Class Method Details

.missing_deps(ff, hide = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


19
20
21
22
23
24
25
26
27
28
29
# File 'Library/Homebrew/diagnostic.rb', line 19

def self.missing_deps(ff, hide = nil)
  missing = {}
  ff.each do |f|
    missing_dependencies = f.missing_dependencies(hide: hide)
    next if missing_dependencies.empty?

    yield f.full_name, missing_dependencies if block_given?
    missing[f.full_name] = missing_dependencies
  end
  missing
end