diff options
| author | Mike McQuaid | 2015-04-21 12:52:56 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2015-04-23 10:47:25 +0100 | 
| commit | 0a56eaa903594f7e2df2ad1c5afec8bb1e1f8a7d (patch) | |
| tree | 79a5397b2fe6e8f59134678ef54f614f6f5a17c5 | |
| parent | 000eed10ad6ff094f08d4ef99a41e8957143ba8a (diff) | |
| download | homebrew-0a56eaa903594f7e2df2ad1c5afec8bb1e1f8a7d.tar.bz2 | |
cleanup-installed: remove command.
It's been deprecated for a few months and `brew bundle` is a far better
tool for this than `cleanup-installed` was.
Closes #38893.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Homebrew/cmd/cleanup-installed.rb | 28 | 
1 files changed, 0 insertions, 28 deletions
| diff --git a/Library/Homebrew/cmd/cleanup-installed.rb b/Library/Homebrew/cmd/cleanup-installed.rb deleted file mode 100644 index 06b71a6e2..000000000 --- a/Library/Homebrew/cmd/cleanup-installed.rb +++ /dev/null @@ -1,28 +0,0 @@ -# DEPRECATED in favour of https://github.com/Homebrew/homebrew-brewdler -# -# brew-cleanup-installed: uninstall all non-whitelisted Homebrew formulae. -# -# Useful for maintainers/testers who regularly install lots of formulae -# they don't actually use. -# -# Populate ~/.brew-cleanup-installed with the formulae you want to keep -# installed. All others will be uninstalled when brew-cleanup-installed is run. - -module Homebrew -  def cleanup_installed -    opoo <<-EOS.undent -      brew cleanup-installed is deprecated and will be removed soon! - -      Please consider using the `brew brewdle dump` and `brew brewdle cleanup` -      commands from https://github.com/Homebrew/homebrew-brewdler -    EOS -    cleanup_file = Pathname.new "#{ENV["HOME"]}/.brew-cleanup-installed" -    return unless cleanup_file.exist? - -    kept_formulae = cleanup_file.read.lines.map(&:strip) -    current_formulae = `brew list`.lines.map(&:strip) -    uninstall_formulae = current_formulae - kept_formulae -    return if uninstall_formulae.empty? -    safe_system "brew", "uninstall", "--force", *uninstall_formulae -  end -end | 
