aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-09-14 05:55:52 +0200
committerGitHub2017-09-14 05:55:52 +0200
commitaeab09169fea05c3c5cfcde600694c45d40dd413 (patch)
tree31c9df609e60df44cc6ff7c51a0c849d57e183ff
parentd1225b9b5e2fb0ff22d518a0add245a65c232162 (diff)
parentae27cd7f79dfce8bc4806d9786ec6bbbf1846a3a (diff)
downloadbrew-aeab09169fea05c3c5cfcde600694c45d40dd413.tar.bz2
Merge pull request #3147 from reitermarkus/cask-irb
Always load Cask in `brew irb`.
-rw-r--r--Library/Homebrew/cmd/irb.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/irb.rb b/Library/Homebrew/cmd/irb.rb
index cba8a5b82..4cd3d4c9e 100644
--- a/Library/Homebrew/cmd/irb.rb
+++ b/Library/Homebrew/cmd/irb.rb
@@ -19,15 +19,13 @@ class String
end
end
-def cask
- $LOAD_PATH.unshift("#{HOMEBREW_LIBRARY_PATH}/cask/lib")
- require "hbc"
-end
-
module Homebrew
module_function
def irb
+ $LOAD_PATH.unshift("#{HOMEBREW_LIBRARY_PATH}/cask/lib")
+ require "hbc"
+
if ARGV.include? "--examples"
puts "'v8'.f # => instance of the v8 formula"
puts ":hub.f.installed?"