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