To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / lib / redmine / info.rb @ 1298:4f746d8966dd
History | View | Annotate | Download (950 Bytes)
| 1 |
module Redmine |
|---|---|
| 2 |
module Info |
| 3 |
class << self |
| 4 |
def app_name; 'Redmine' end |
| 5 |
def url; 'http://www.redmine.org/' end |
| 6 |
def help_url; '/projects/soundsoftware-site/wiki/Help' end |
| 7 |
def versioned_name; "#{app_name} #{Redmine::VERSION}" end |
| 8 |
|
| 9 |
def environment |
| 10 |
s = "Environment:\n"
|
| 11 |
s << [ |
| 12 |
["Redmine version", Redmine::VERSION], |
| 13 |
["Ruby version", "#{RUBY_VERSION} (#{RUBY_PLATFORM})"], |
| 14 |
["Rails version", Rails::VERSION::STRING], |
| 15 |
["Environment", Rails.env], |
| 16 |
["Database adapter", ActiveRecord::Base.connection.adapter_name] |
| 17 |
].map {|info| " %-40s %s" % info}.join("\n")
|
| 18 |
s << "\nRedmine plugins:\n"
|
| 19 |
|
| 20 |
plugins = Redmine::Plugin.all |
| 21 |
if plugins.any?
|
| 22 |
s << plugins.map {|plugin| " %-40s %s" % [plugin.id.to_s, plugin.version.to_s]}.join("\n")
|
| 23 |
else
|
| 24 |
s << " no plugin installed"
|
| 25 |
end
|
| 26 |
end
|
| 27 |
end
|
| 28 |
end
|
| 29 |
end
|