use redmine configuration for configuration variables to show on info
This commit is contained in:
parent
5ba172e835
commit
79b4586ed4
@ -11,10 +11,18 @@ class AdditionalsInfo
|
|||||||
api_value: system_uptime(format: :datetime) },
|
api_value: system_uptime(format: :datetime) },
|
||||||
redmine_plugin_kit: { label: 'Redmine Plugin Kit',
|
redmine_plugin_kit: { label: 'Redmine Plugin Kit',
|
||||||
value: RedminePluginKit::VERSION } }
|
value: RedminePluginKit::VERSION } }
|
||||||
infos['ENABLE_DEBUG'] = { value: true } if ENV['ENABLE_DEBUG']
|
|
||||||
if ENV['ENABLE_BACKTRACE']
|
Array(Redmine::Configuration['system_infos_vars']).each do |var|
|
||||||
infos['ENABLE_BACKTRACE'] = { value: true }
|
next unless ENV.key? var
|
||||||
infos['RUBYOPT'] = { value: ENV['RUBYOPT'] }
|
|
||||||
|
infos[var] = { value: ENV[var] }
|
||||||
|
end
|
||||||
|
|
||||||
|
Array(Redmine::Configuration['system_infos_bool_vars']).each do |var|
|
||||||
|
next unless ENV.key? var
|
||||||
|
|
||||||
|
value = ENV[var]
|
||||||
|
infos[var] = { value: RedminePluginKit.true?(value) } if value
|
||||||
end
|
end
|
||||||
|
|
||||||
infos
|
infos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user