Commit 8f300a6f2ebd3ff49e0216f514ebcacc7be8061a:
    Convert to HTML

Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>

------------------------------------------------------------
www/status.cgi                                               | +++++++++++ -
------------------------------------------------------------
12 changes: 11 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/status.cgi b/www/status.cgi
index 4dff47c..ac58401 100755
--- a/www/status.cgi
+++ b/www/status.cgi
@@ -1,3 +1,13 @@
 #!/usr/bin/ruby
+require 'wunderbar'
 
-print "Status: 200 OK\r\nContent-type: text/plain\r\n\r\n200\n"
+# the following is what infrastructure team sees:
+print "Status: 200 OK\r\n"
+
+# For human consumption:
+_html do
+  _h1 "Whimsy-Test Status"
+  _p do
+    _a 'Ping My Box', href: 'https://www.pingmybox.com/dashboard?location=470'
+  end
+end

Reply via email to