cleanup: rename method for consistency
This commit is contained in:
parent
5515d359d5
commit
0c35274bf4
@ -23,8 +23,9 @@ module Homebrew extend self
|
|||||||
# Don't complain about directories from DIY installs
|
# Don't complain about directories from DIY installs
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
clean_cache
|
|
||||||
# seems like a good time to do some additional cleanup
|
cleanup_cache
|
||||||
|
|
||||||
unless ARGV.dry_run?
|
unless ARGV.dry_run?
|
||||||
Homebrew.prune
|
Homebrew.prune
|
||||||
rm_DS_Store
|
rm_DS_Store
|
||||||
@ -58,7 +59,7 @@ module Homebrew extend self
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def clean_cache
|
def cleanup_cache
|
||||||
return unless HOMEBREW_CACHE.directory?
|
return unless HOMEBREW_CACHE.directory?
|
||||||
HOMEBREW_CACHE.children.each do |pn|
|
HOMEBREW_CACHE.children.each do |pn|
|
||||||
next unless pn.file?
|
next unless pn.file?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user