aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cleanup.rb
AgeCommit message (Collapse)Author
2012-08-29Figure out if we can cleanup keg-only kegsMax Howell
2012-08-13brew cleanup removes .DS_Store filesMax Howell
Probably slow, but we hate these fuckers.
2012-07-09ARGV: add .dry_run? methodMisty De Meo
Add an ARGV.dry_run? helper method for '--dry-run'/'-n' now that '-n' is being used as a git-style dry-run in two commands. Closes #12898. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-04-30Cleanup old bottles.Mike McQuaid
2012-03-09Don't cleanup the wrong thingsMax Howell
This still isn't perfect, but it will handle hyphens in formula-names better now. A proper solution is not easy or maybe even possible unless we ban hyphens in versions AND formula names, or use a different character as a separate in downloaded cache files which we then ban from formula-name and version strings. Refs #2923.
2012-03-07Don't attempt to cleanup source checkoutsMax Howell
Fixes #10751.
2012-03-06`brew cleanup` cleans up the download-cacheMax Howell
Manpage updated. The -s switch is "scrub" and removes downloads for uninstall formula which are downloads for the latest version of that formula still. Please NOTE cache is NOT cleaned if a formula argument is provided. I couldn't be bothered. Patches welcome :) Closes #2923.
2011-11-07cleanup: add an option to perform a 'dry run'Jack Nagel
Sometimes you want to know what `brew cleanup` will do before it actually removes anything. Introduce a '-n' option (chosen to match other UNIX tools) to do this. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-16Centralize definition of `rack` in formula.rbCharlie Sharpsteen
`rack` is a commonly used alias for `formula.prefix.parent`---so common that it gets defined and used quite a bit. This patch makes `rack` an official method of the `Formula` class.
2011-08-24Revise cleanup text, we're removing, not uninstallingMax Howell
2011-04-18Add --force to brew cleanupAdam Vandenberg
2011-03-12brew cleanup - do not clean up keg-only brews for nowAdam Vandenberg
2011-03-12brew cleanup - fix formula name in warningAdam Vandenberg
2011-03-12Silence cleanup warningAdam Vandenberg
When a cellar exists for an unknown formula, no longer print a warning. External tools using Brew to manage diy-installs will create a large number of non-formula cellars.
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.