VCSDownloadStrategy: document acceptable ref types
This commit is contained in:
		
							parent
							
								
									a25152b5a1
								
							
						
					
					
						commit
						41e3b2cad0
					
				@ -39,6 +39,8 @@ class AbstractDownloadStrategy
 | 
				
			|||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class VCSDownloadStrategy < AbstractDownloadStrategy
 | 
					class VCSDownloadStrategy < AbstractDownloadStrategy
 | 
				
			||||||
 | 
					  REF_TYPES = [:branch, :revision, :revisions, :tag].freeze
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def initialize name, resource
 | 
					  def initialize name, resource
 | 
				
			||||||
    super
 | 
					    super
 | 
				
			||||||
    @ref_type, @ref = destructure_spec_hash(resource.specs)
 | 
					    @ref_type, @ref = destructure_spec_hash(resource.specs)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user