Skip to content
Snippets Groups Projects
Commit b2359873 authored by Markus Reiter's avatar Markus Reiter
Browse files

Move `legacy_cache` outside of `Locations`.

parent 1959cc3f
No related branches found
No related tags found
No related merge requests found
......@@ -10,10 +10,11 @@ module Hbc
end
def delete_legacy_cache
return unless Hbc.legacy_cache.exist?
legacy_cache = HOMEBREW_CACHE.join("Casks")
return unless legacy_cache.exist?
ohai "Deleting legacy cache at #{Hbc.legacy_cache}..."
FileUtils.remove_entry_secure(Hbc.legacy_cache)
ohai "Deleting legacy cache at #{legacy_cache}..."
FileUtils.remove_entry_secure(legacy_cache)
end
end
end
......@@ -38,10 +38,6 @@ module Hbc
end
end
def legacy_cache
@legacy_cache ||= HOMEBREW_CACHE.join("Casks")
end
attr_writer :cache
def cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment