From 8bbe9b744f627f1b3741b4b667e64ed797e6323a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 1 Dec 2017 09:51:09 +0000 Subject: hooks/bottles: remove bottle hooks. These were removed from Boxen in: https://github.com/boxen/puppet-homebrew/pull/108 --- Library/Homebrew/hooks/bottles.rb | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 Library/Homebrew/hooks/bottles.rb (limited to 'Library/Homebrew/hooks') 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 -- cgit v1.2.3