diff options
Diffstat (limited to 'Library/Homebrew/cask/lib')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/locations.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/locations.rb b/Library/Homebrew/cask/lib/hbc/locations.rb index 292b45d0c..4fb4a2191 100644 --- a/Library/Homebrew/cask/lib/hbc/locations.rb +++ b/Library/Homebrew/cask/lib/hbc/locations.rb @@ -15,6 +15,8 @@ module Hbc @default_caskroom ||= HOMEBREW_PREFIX.join("Caskroom") end + attr_writer :caskroom + def caskroom @caskroom ||= begin if Utils.path_occupied?(legacy_caskroom) @@ -36,14 +38,12 @@ module Hbc end end - def caskroom=(caskroom) - @caskroom = caskroom - end - def legacy_cache @legacy_cache ||= HOMEBREW_CACHE.join("Casks") end + attr_writer :cache + def cache @cache ||= HOMEBREW_CACHE.join("Cask") end |
