Class: Homebrew::NondeveloperDependentsMessage

Inherits:
DependentsMessage show all
Defined in:
brew/Library/Homebrew/cmd/uninstall.rb

Instance Attribute Summary

Attributes inherited from DependentsMessage

#deps, #reqs

Instance Method Summary collapse

Methods inherited from DependentsMessage

#initialize

Constructor Details

This class inherits a constructor from Homebrew::DependentsMessage

Instance Method Details

#outputObject



154
155
156
157
158
159
160
161
# File 'brew/Library/Homebrew/cmd/uninstall.rb', line 154

def output
  ofail <<~EOS
    Refusing to uninstall #{reqs.to_sentence}
    because #{"it".pluralize(reqs.count)} #{are_required_by_deps}.
    You can override this and force removal with:
      #{sample_command}
  EOS
end