Merge pull request #1502 from reitermarkus/load-metadata-cask-file

Load cask file in `.metadata` directory directly.
This commit is contained in:
Markus Reiter 2016-11-21 10:43:15 +01:00 committed by GitHub
commit c7267b123d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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