diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 2edc51a07..41e2803bd 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -344,3 +344,17 @@ class BottleSpecification checksums end end + +class PourBottleCheck + def initialize(formula) + @formula = formula + end + + def reason(reason) + @formula.pour_bottle_check_unsatisfied_reason(reason) + end + + def satisfy(&block) + @formula.send(:define_method, :pour_bottle?, &block) + end +end |
