Module: Homebrew::Diagnostic

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

Defined Under Namespace

Classes: Checks, Volumes

Class Method Summary collapse

Class Method Details

.missing_deps(ff, hide = nil) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
# File 'Library/Homebrew/diagnostic.rb', line 10

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

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