Class: Homebrew::Uninstall::NondeveloperDependentsMessage Private

Inherits:
DependentsMessage show all
Defined in:
uninstall.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Attribute Summary

Attributes inherited from DependentsMessage

#deps, #named_args, #reqs

Instance Method Summary collapse

Methods inherited from DependentsMessage

#initialize

Constructor Details

This class inherits a constructor from Homebrew::Uninstall::DependentsMessage

Instance Method Details

#outputObject

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.



150
151
152
153
154
155
156
157
# File 'uninstall.rb', line 150

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