aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/hooks
diff options
context:
space:
mode:
authorMike McQuaid2017-12-01 09:51:09 +0000
committerMike McQuaid2017-12-01 09:51:10 +0000
commit8bbe9b744f627f1b3741b4b667e64ed797e6323a (patch)
tree3c80e2fe8a925ad4412ef5bc6c428988839af945 /Library/Homebrew/hooks
parent23d99b4155fe9a97c6bf7bf052dd8354c935e6fa (diff)
downloadbrew-8bbe9b744f627f1b3741b4b667e64ed797e6323a.tar.bz2
hooks/bottles: remove bottle hooks.
These were removed from Boxen in: https://github.com/boxen/puppet-homebrew/pull/108
Diffstat (limited to 'Library/Homebrew/hooks')
-rw-r--r--Library/Homebrew/hooks/bottles.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/Library/Homebrew/hooks/bottles.rb b/Library/Homebrew/hooks/bottles.rb
deleted file mode 100644
index c6612dea6..000000000
--- a/Library/Homebrew/hooks/bottles.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-# Boxen (and perhaps others) want to override our bottling infrastructure so
-# they can avoid declaring checksums in formulae files.
-# Instead of periodically breaking their monkeypatches let's add some hooks that
-# we can query to allow their own behaviour.
-
-# PLEASE DO NOT EVER RENAME THIS CLASS OR ADD/REMOVE METHOD ARGUMENTS!
-module Homebrew
- module Hooks
- module Bottles
- def self.setup_formula_has_bottle(&block)
- @has_bottle = block
- true
- end
-
- def self.setup_pour_formula_bottle(&block)
- @pour_bottle = block
- true
- end
-
- def self.formula_has_bottle?(formula)
- return false unless @has_bottle
- @has_bottle.call formula
- end
-
- def self.pour_formula_bottle(formula)
- return false unless @pour_bottle
- @pour_bottle.call formula
- end
-
- def self.reset_hooks
- @has_bottle = @pour_bottle = nil
- end
- end
- end
-end