6 |
6 |
def help_url; 'https://www.redmine.org/guide' end
|
7 |
7 |
def versioned_name; "#{app_name} #{Redmine::VERSION}" end
|
8 |
8 |
|
9 |
|
def environment
|
|
9 |
def environment(request = nil)
|
10 |
10 |
s = "Environment:\n"
|
11 |
|
s << [
|
12 |
|
["Redmine version", Redmine::VERSION],
|
13 |
|
["Ruby version", "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"],
|
14 |
|
["Rails version", Rails::VERSION::STRING],
|
15 |
|
["Environment", Rails.env],
|
16 |
|
["Database adapter", ActiveRecord::Base.connection.adapter_name],
|
17 |
|
["Mailer queue", ActionMailer::DeliveryJob.queue_adapter.class.name],
|
18 |
|
["Mailer delivery", ActionMailer::Base.delivery_method]
|
19 |
|
].map {|info| " %-30s %s" % info}.join("\n") + "\n"
|
|
11 |
environment_data = [["Redmine version", Redmine::VERSION],
|
|
12 |
["Ruby version", "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"],
|
|
13 |
["Rails version", Rails::VERSION::STRING],
|
|
14 |
["Environment", Rails.env],
|
|
15 |
["Database adapter", ActiveRecord::Base.connection.adapter_name],
|
|
16 |
["Mailer queue", ActionMailer::DeliveryJob.queue_adapter.class.name],
|
|
17 |
["Mailer delivery", ActionMailer::Base.delivery_method]]
|
|
18 |
environment_data << ["App server", request.get_header("SERVER_SOFTWARE")] if request.present?
|
|
19 |
s << environment_data.map {|info| " %-30s %s" % info}.join("\n") + "\n"
|
20 |
20 |
|
21 |
21 |
s << "SCM:\n"
|
22 |
22 |
Redmine::Scm::Base.all.each do |scm|
|