You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2016/04/05 10:22:37 UTC
[whimsy] branch master updated: Move logic to backend script
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 <se...@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" <co...@whimsical.apache.org>'].