From a19a0917b1e1bf875dbc4c30f63b0ac7ba71a356 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 11 Aug 2020 20:18:30 +0200 Subject: [PATCH] Reinstate `#shutup!`. --- Library/Homebrew/download_strategy.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 7afadb9c85..4a78679f43 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -38,6 +38,11 @@ class AbstractDownloadStrategy # Download and cache the resource as {#cached_location}. def fetch; end + # TODO: Deprecate once we have an explicitly documented alternative. + def shutup! + @quiet = true + end + def puts(*args) super(*args) unless quiet? end