aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-16 22:58:21 +0100
committerGitHub2017-03-16 22:58:21 +0100
commitbfb5bf1d7007821c74de4252fe1ade5047e0ca3c (patch)
treefc9991edb93017eaab5fe4b26f781a45ad909b77 /Library/Homebrew/cmd
parentc4d8b1696c90fa54f0e2f4bce3c734f7a657662b (diff)
parented10135da4fbabca2798afe949b6f5af9544ec9f (diff)
downloadbrew-bfb5bf1d7007821c74de4252fe1ade5047e0ca3c.tar.bz2
Merge pull request #2325 from reitermarkus/better-cask-loading
Use a `Formulary`-like approach to load Casks.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/irb.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/irb.rb b/Library/Homebrew/cmd/irb.rb
index 5561845e7..cba8a5b82 100644
--- a/Library/Homebrew/cmd/irb.rb
+++ b/Library/Homebrew/cmd/irb.rb
@@ -19,6 +19,11 @@ class String
end
end
+def cask
+ $LOAD_PATH.unshift("#{HOMEBREW_LIBRARY_PATH}/cask/lib")
+ require "hbc"
+end
+
module Homebrew
module_function