whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Move logic to backend script
Date Tue, 05 Apr 2016 08:22:37 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  89e0402   Move logic to backend script
89e0402 is described below

commit 89e04020e999c72c4c586698c87bba435c7c0ad6
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Apr 5 09:20:23 2016 +0100

    Move logic to backend script
---
 tools/mirror_check.rb        | 7 +++++++
 www/members/mirror_check.cgi | 4 +---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/tools/mirror_check.rb b/tools/mirror_check.rb
index 93cfb3a..07ff4a0 100755
--- a/tools/mirror_check.rb
+++ b/tools/mirror_check.rb
@@ -316,6 +316,13 @@ def display
   _h4_ 'F: fatal, E: Error, W: warning, I: info (success)'
 end
 
+# Called by GUI when POST is pushed
+def doPost(url)
+  init
+  checkHTTP(url)
+  display
+end
+
 if __FILE__ == $0
   init
   url = ARGV[0] || DEFAULT
diff --git a/www/members/mirror_check.cgi b/www/members/mirror_check.cgi
index 64e6f85..ce8f175 100755
--- a/www/members/mirror_check.cgi
+++ b/www/members/mirror_check.cgi
@@ -40,9 +40,7 @@ _html do
     end
 
     if _.post?
-      init
-      checkHTTP(@url)
-      display
+      doPost(@url)
     end
   end
 end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message