diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb index ba43e65c4e04e6601ea5be795a42279f11a48fd4..aa38b54f4d5e6719428a6596e55a600bd1b4dc01 100644 --- a/Library/Homebrew/brew.rb +++ b/Library/Homebrew/brew.rb @@ -53,9 +53,6 @@ begin ENV["PATH"] += "#{File::PATH_SEPARATOR}#{tap_cmd_dir}" end - # Add cask commands to PATH. - ENV["PATH"] += "#{File::PATH_SEPARATOR}#{HOMEBREW_LIBRARY}/Homebrew/cask/cmd" - # Add SCM wrappers. ENV["PATH"] += "#{File::PATH_SEPARATOR}#{HOMEBREW_SHIMS_PATH}/scm" diff --git a/Library/Homebrew/cask/cmd/brew-cask.rb b/Library/Homebrew/cask/cmd/brew-cask.rb deleted file mode 100755 index 825c4cb8181c050a7ca9e4749dc6f0f28997a0f2..0000000000000000000000000000000000000000 --- a/Library/Homebrew/cask/cmd/brew-cask.rb +++ /dev/null @@ -1,12 +0,0 @@ -require "pathname" - -$LOAD_PATH.unshift(File.expand_path("../../lib", Pathname.new(__FILE__).realpath)) - -require "hbc" - -begin - Hbc::CLI.process(ARGV) -rescue Interrupt - puts - exit 130 -end diff --git a/Library/Homebrew/cmd/cask.rb b/Library/Homebrew/cmd/cask.rb new file mode 100644 index 0000000000000000000000000000000000000000..8a68b8d9a747f8d49b33a96caddf199947ca47fa --- /dev/null +++ b/Library/Homebrew/cmd/cask.rb @@ -0,0 +1,10 @@ +$LOAD_PATH.unshift("#{HOMEBREW_LIBRARY_PATH}/cask/lib") +require "hbc" + +module Homebrew + module_function + + def cask + Hbc::CLI.process(ARGV) + end +end