diff options
| author | Markus Reiter | 2017-03-06 17:37:37 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-06 17:37:37 +0100 |
| commit | 6be4aa850a4dec026f92acaed776f2b9260457e6 (patch) | |
| tree | 7feca438db0b263b2d90bb77d7b760729e09b05e | |
| parent | d37f2e7ae7b6915063960998df16b3cf4f76115c (diff) | |
| parent | 3e7f94d5b54799db72917b9c2d99f3e592c892a1 (diff) | |
| download | brew-6be4aa850a4dec026f92acaed776f2b9260457e6.tar.bz2 | |
Merge pull request #2275 from reitermarkus/cmd-cask
Move `cask` to `cmd/`.
| -rw-r--r-- | Library/Homebrew/brew.rb | 3 | ||||
| -rwxr-xr-x | Library/Homebrew/cask/cmd/brew-cask.rb | 12 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/cask.rb | 10 |
3 files changed, 10 insertions, 15 deletions
diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb index ba43e65c4..aa38b54f4 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 825c4cb81..000000000 --- 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 000000000..8a68b8d9a --- /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 |
