Fixed quiet for download_strategy
This commit is contained in:
parent
20dde0b313
commit
c798c3c538
@ -38,6 +38,7 @@ class AbstractDownloadStrategy
|
||||
@version = version
|
||||
@cache = meta.fetch(:cache, HOMEBREW_CACHE)
|
||||
@meta = meta
|
||||
@quiet = false
|
||||
extend Pourable if meta[:bottle]
|
||||
end
|
||||
|
||||
@ -55,6 +56,10 @@ class AbstractDownloadStrategy
|
||||
@quiet = true
|
||||
end
|
||||
|
||||
def quiet?
|
||||
Context.current.quiet? || @quiet
|
||||
end
|
||||
|
||||
# Unpack {#cached_location} into the current working directory, and possibly
|
||||
# chdir into the newly-unpacked directory.
|
||||
# Unlike {Resource#stage}, this does not take a block.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user