To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 87 / 87302c164870deca416ccc176d640a68faf97687.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (940 Bytes)
| 1 | 1296:038ba2d95de8 | Chris | 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; 'http://www.redmine.org/guide' 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 |