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.



157
158
159
160
161
162
163
164
# File 'uninstall.rb', line 157

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