Merge pull request #8308 from reitermarkus/shutup

Reinstate `#shutup!`.
This commit is contained in:
Dawid Dziurla 2020-08-11 20:42:42 +02:00 committed by GitHub
commit ce8eba1eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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