Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
brew: cask is now a tap command.
Browse files Browse the repository at this point in the history
So we can remove the formula installation from `brew.rb`.

Closes #46843.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
MikeMcQuaid committed Dec 10, 2015
1 parent dcb3cf0 commit e1c6bb2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Library/brew.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,8 @@ def require?(path)
Tap.fetch("Homebrew", "services")
end

command_installed = false

if possible_tap && !possible_tap.installed?
possible_tap.install
command_installed = true
end

if cmd == "cask" && (brew_cask = Formulary.factory("brew-cask")) \
&& !brew_cask.installed?
require "cmd/install"
Homebrew.install_formula(brew_cask)
command_installed = true
end

if command_installed
exec HOMEBREW_BREW_FILE, cmd, *ARGV
else
onoe "Unknown command: #{cmd}"
Expand Down

0 comments on commit e1c6bb2

Please sign in to comment.