summaryrefslogtreecommitdiffstats
path: root/lib/redmine/info.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-06-01 16:32:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-06-01 16:32:29 +0000
commit29c3b34641387d190b0bd87122cac7536a93b698 (patch)
tree4fd054833aee86add5843ab05abb1c9b96f03ab8 /lib/redmine/info.rb
parente27deb1ecee42918baf86d92e9ac31e1df75fe60 (diff)
downloadredmine-29c3b34641387d190b0bd87122cac7536a93b698.tar.gz
redmine-29c3b34641387d190b0bd87122cac7536a93b698.zip
Adds SCM versions in script/about output.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11918 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/info.rb')
-rw-r--r--lib/redmine/info.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/redmine/info.rb b/lib/redmine/info.rb
index 98df8d20b..4cc71c9f8 100644
--- a/lib/redmine/info.rb
+++ b/lib/redmine/info.rb
@@ -14,9 +14,17 @@ module Redmine
["Rails version", Rails::VERSION::STRING],
["Environment", Rails.env],
["Database adapter", ActiveRecord::Base.connection.adapter_name]
- ].map {|info| " %-40s %s" % info}.join("\n")
- s << "\nRedmine plugins:\n"
+ ].map {|info| " %-40s %s" % info}.join("\n") + "\n"
+ s << "SCM:\n"
+ Redmine::Scm::Base.all.each do |scm|
+ scm_class = "Repository::#{scm}".constantize
+ if scm_class.scm_available
+ s << " %-40s %s\n" % [scm, scm_class.scm_version_string]
+ end
+ end
+
+ s << "Redmine plugins:\n"
plugins = Redmine::Plugin.all
if plugins.any?
s << plugins.map {|plugin| " %-40s %s" % [plugin.id.to_s, plugin.version.to_s]}.join("\n")