Class: BazaarDownloadStrategy
- Inherits:
 - 
      VCSDownloadStrategy
      
        
- Object
 - AbstractDownloadStrategy
 - VCSDownloadStrategy
 - BazaarDownloadStrategy
 
 
- Defined in:
 - download_strategy.rb
 
Overview
Strategy for downloading a Bazaar repository.
Constant Summary
Constants inherited from VCSDownloadStrategy
VCSDownloadStrategy::REF_TYPES
Instance Attribute Summary
Attributes inherited from VCSDownloadStrategy
Attributes inherited from AbstractDownloadStrategy
Instance Method Summary collapse
- #initialize(url, name, version, **meta) ⇒ void constructor private
 - 
  
    
      #last_commit  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Return last commit's unique identifier for the repository.
 - 
  
    
      #source_modified_time  ⇒ Time 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the most recent modified time for all files in the current working directory after stage.
 
Methods inherited from VCSDownloadStrategy
#commit_outdated?, #fetch, #fetch_last_commit, #head?
Methods inherited from AbstractDownloadStrategy
#basename, #cached_location, #clear_cache, #fetch, #ohai, #quiet!, #quiet?, #stage
Methods included from Utils::Output::Mixin
#odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_duration, #pretty_installed, #pretty_outdated, #pretty_uninstalled
Methods included from SystemCommand::Mixin
#system_command, #system_command!
Methods included from Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Constructor Details
#initialize(url, name, version, **meta) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
      1471 1472 1473 1474  | 
    
      # File 'download_strategy.rb', line 1471 def initialize(url, name, version, **) super @url = T.let(@url.sub(%r{^bzr://}, ""), String) end  | 
  
Instance Method Details
#last_commit ⇒ String
Return last commit's unique identifier for the repository.
      1491 1492 1493  | 
    
      # File 'download_strategy.rb', line 1491 def last_commit silent_command("bzr", args: ["revno", cached_location]).stdout.chomp end  | 
  
#source_modified_time ⇒ Time
Returns the most recent modified time for all files in the current working directory after stage.
      1480 1481 1482 1483 1484 1485  | 
    
      # File 'download_strategy.rb', line 1480 def source_modified_time = silent_command("bzr", args: ["log", "-l", "1", "--timezone=utc", cached_location]).stdout.chomp raise "Could not get any timestamps from bzr!" if .blank? Time.parse() end  |