Module: Homebrew::Diagnostic

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

Defined Under Namespace

Classes: Checks, Volumes

Class Method Summary collapse

Class Method Details

.missing_deps(ff, hide = nil) ⇒ Object



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

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