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 b8dad6c  Obsolete
b8dad6c is described below

commit b8dad6ce7b0aaf9d46c5ff531a4bd0d9a2af2bf8
Author: Sebb <[email protected]>
AuthorDate: Wed Sep 23 23:00:19 2020 +0100

    Obsolete
---
 www/whimsy.rb | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/www/whimsy.rb b/www/whimsy.rb
deleted file mode 100644
index fb5dc06..0000000
--- a/www/whimsy.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-require 'socket'
-require 'resolv'
-module Whimsy
-  # Are we the master node?
-  def self.master?()
-    Resolv::DNS.open do |rs|
-      master = rs.getaddress("whimsy.apache.org") # Official hostname as IP
-      current = rs.getaddress(Socket.gethostname) rescue nil # local as IP
-      return current == master
-    end
-  end
-end
-
-# for debugging purposes
-if __FILE__ == $0
-  puts Whimsy.master?
-end
\ No newline at end of file

Reply via email to