diff options
| author | Jack Nagel | 2013-03-18 00:11:49 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-18 00:11:49 -0500 |
| commit | 56fa23e07ee4ee27cd22babb1c1ce57bb5d2a7c6 (patch) | |
| tree | 2002b93b610f5d0ce58e5730cbaf645db74eecad /Library | |
| parent | 43a8e896e8806ca1a1ddc8d024e9903be4a60a20 (diff) | |
| download | brew-56fa23e07ee4ee27cd22babb1c1ce57bb5d2a7c6.tar.bz2 | |
cleaner: simplify verbose pathname extension
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cleaner.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index c3e060b1a..8d89b7698 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -64,7 +64,7 @@ class Cleaner # Clean a single folder (non-recursively) def clean_dir d d.find do |path| - path.extend(NoiseyPathname) if ARGV.verbose? + path.extend(NoisyPathname) if ARGV.verbose? if path.directory? # Stop cleaning this subtree if protected @@ -87,14 +87,9 @@ class Cleaner end - -class Pathname - alias_method :orig_unlink, :unlink -end - -module NoiseyPathname +module NoisyPathname def unlink puts "rm: #{self}" - orig_unlink + super end end |
