diff options
| author | Markus Reiter | 2017-03-06 21:28:34 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-03-12 00:35:09 +0100 |
| commit | 3bd4349e8ebfd44ce99beea90a8244ed8da33e8a (patch) | |
| tree | 41b10d5a60388069eacb9da644fc50da28da504b /Library/Homebrew/cask/lib/hbc/locations.rb | |
| parent | 7a8d782365b615e066bead9b4829f6fce7f375df (diff) | |
| download | brew-3bd4349e8ebfd44ce99beea90a8244ed8da33e8a.tar.bz2 | |
Migrate legacy Caskroom.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/locations.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/locations.rb | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/locations.rb b/Library/Homebrew/cask/lib/hbc/locations.rb index 7a0f93851..80add91dd 100644 --- a/Library/Homebrew/cask/lib/hbc/locations.rb +++ b/Library/Homebrew/cask/lib/hbc/locations.rb @@ -7,35 +7,10 @@ module Hbc end module ClassMethods - def legacy_caskroom - @legacy_caskroom ||= Pathname.new("/opt/homebrew-cask/Caskroom") - end - - def default_caskroom - @default_caskroom ||= HOMEBREW_PREFIX.join("Caskroom") - end - attr_writer :caskroom def caskroom - @caskroom ||= begin - if Utils.path_occupied?(legacy_caskroom) - opoo <<-EOS.undent - The default Caskroom location has moved to #{default_caskroom}. - - Please migrate your Casks to the new location and delete #{legacy_caskroom}, - or if you would like to keep your Caskroom at #{legacy_caskroom}, add the - following to your HOMEBREW_CASK_OPTS: - - --caskroom=#{legacy_caskroom} - - For more details on each of those options, see https://github.com/caskroom/homebrew-cask/issues/21913. - EOS - legacy_caskroom - else - default_caskroom - end - end + @caskroom ||= HOMEBREW_PREFIX.join("Caskroom") end attr_writer :cache |
