OSDN Git Service

Converted the REDMINE_SUPPORTED_SCM constant to a class
authorEric Davis <edavis@littlestreamsoftware.com>
Tue, 16 Feb 2010 22:41:59 +0000 (22:41 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Tue, 16 Feb 2010 22:41:59 +0000 (22:41 +0000)
commit9e22faa640c0d1707da4c2203a6e3f936683b4c9
tree81b68a05472ae9559545d7b97c504e6d521a39fe
parentb3330d399543878c2e49df16ed4b73add9afd560
Converted the  REDMINE_SUPPORTED_SCM constant to a class

Now SCMs can be added or removed using a simple API, instead of being
hardcoded:

  Redmine::Scm::Base.add('ScmName')
  Redmine::Scm::Base.delete('ScmName')

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3440 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/controllers/application_controller.rb
app/helpers/repositories_helper.rb
app/views/settings/_repositories.rhtml
lib/redmine.rb
lib/redmine/scm/base.rb [new file with mode: 0644]