aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-12 19:18:41 +0100
committerMarkus Reiter2017-03-16 12:10:19 +0100
commitd1995dad4bf76b447d9c97f1c2db99c6b3854b51 (patch)
tree8cecf7abf6193d6429a43c8daeb6d71f009119b9 /Library/Homebrew/compat
parentc4d8b1696c90fa54f0e2f4bce3c734f7a657662b (diff)
downloadbrew-d1995dad4bf76b447d9c97f1c2db99c6b3854b51.tar.bz2
Use a `Formulary`-like approach to load Casks.
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/hbc/cask_loader.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/compat/hbc/cask_loader.rb b/Library/Homebrew/compat/hbc/cask_loader.rb
index a7c84e3ce..e6cb65b4f 100644
--- a/Library/Homebrew/compat/hbc/cask_loader.rb
+++ b/Library/Homebrew/compat/hbc/cask_loader.rb
@@ -12,7 +12,11 @@ module CaskLoaderCompatibilityLayer
end
module Hbc
- class CaskLoader
- prepend CaskLoaderCompatibilityLayer
+ module CaskLoader
+ class FromContentLoader; end
+
+ class FromPathLoader < FromContentLoader
+ prepend CaskLoaderCompatibilityLayer
+ end
end
end