This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 1f676d8 Show basic config info
1f676d8 is described below
commit 1f676d8d6b99c31c4f6e67434e3b51b4a62b37d4
Author: Sebb <[email protected]>
AuthorDate: Mon Nov 25 16:17:40 2019 +0000
Show basic config info
---
www/committers/config_info.cgi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/www/committers/config_info.cgi b/www/committers/config_info.cgi
new file mode 100755
index 0000000..d5364c7
--- /dev/null
+++ b/www/committers/config_info.cgi
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+PAGETITLE = "Config Info" # Wvisible:tools config
+$LOAD_PATH.unshift '/srv/whimsy/lib'
+require 'whimsy/asf'
+
+print "Content-type: text/plain; charset=UTF-8\r\n\r\n"
+
+cfg = ASF::Config.instance_variable_get(:@config)
+
+cfg.each do |k,v|
+ puts "%s: %s" % [k,v]
+end
\ No newline at end of file