aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2016-11-14 12:33:57 +0100
committerMarkus Reiter2016-11-18 23:02:58 +0100
commitbd9755fd78c4480dfb393c8317f685ec770e076a (patch)
tree600cba2131ff001555d53d058da36bc5f7a7ba80
parent7853406fb40f9b2785cef805e6f9a19183ae3017 (diff)
downloadbrew-bd9755fd78c4480dfb393c8317f685ec770e076a.tar.bz2
Load cask file in `.metadata` directory directly.
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/reinstall.rb2
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/uninstall.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb b/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb
index ac514bd50..3560a4795 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb
@@ -19,7 +19,7 @@ module Hbc
"Casks", "#{cask_token}.rb")
# use the same cask file that was used for installation, if possible
- installed_cask = Hbc.load(latest_installed_cask_file) if latest_installed_cask_file.exist?
+ installed_cask = CaskLoader.load_from_file(latest_installed_cask_file) if latest_installed_cask_file.exist?
end
# Always force uninstallation, ignore method parameter
diff --git a/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb b/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb
index 2bebb97b0..d74b59d4c 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb
@@ -20,7 +20,7 @@ module Hbc
"Casks", "#{cask_token}.rb")
# use the same cask file that was used for installation, if possible
- cask = Hbc.load(latest_installed_cask_file) if latest_installed_cask_file.exist?
+ cask = CaskLoader.load_from_file(latest_installed_cask_file) if latest_installed_cask_file.exist?
end
Installer.new(cask, force: force).uninstall