mirror of
				https://github.com/redmine/redmine.git
				synced 2025-10-31 18:36:07 +01:00 
			
		
		
		
	git-svn-id: http://svn.redmine.org/redmine/trunk@19116 e93f8b46-1217-0410-a6f0-8f06a7374b81
		
			
				
	
	
		
			25 lines
		
	
	
		
			453 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			453 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| module Redmine
 | |
|   module Scm
 | |
|     class Base
 | |
|       class << self
 | |
|         def all
 | |
|           @scms || []
 | |
|         end
 | |
| 
 | |
|         # Add a new SCM adapter and repository
 | |
|         def add(scm_name)
 | |
|           @scms ||= []
 | |
|           @scms << scm_name
 | |
|         end
 | |
| 
 | |
|         # Remove a SCM adapter from Redmine's list of supported scms
 | |
|         def delete(scm_name)
 | |
|           @scms.delete(scm_name)
 | |
|         end
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |