Adds SCM versions in script/about output.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11918 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e27deb1ece
commit
29c3b34641
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue