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 d1d4501  Makes more sense as Status
d1d4501 is described below

commit d1d4501480190de271fab4b3b947f5b21ac6f2c1
Author: Sebb <[email protected]>
AuthorDate: Wed Sep 23 16:48:05 2020 +0100

    Makes more sense as Status
---
 lib/whimsy/asf/{active.rb => status.rb} | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/whimsy/asf/active.rb b/lib/whimsy/asf/status.rb
similarity index 85%
rename from lib/whimsy/asf/active.rb
rename to lib/whimsy/asf/status.rb
index 106e189..5887748 100644
--- a/lib/whimsy/asf/active.rb
+++ b/lib/whimsy/asf/status.rb
@@ -1,12 +1,12 @@
 #!/usr/bin/env ruby
 
-# utility methods **DRAFT**
+# status methods
 
 require 'socket'
 require 'resolv'
 
 # common methods
-module Whimsy
+module Status
 
   # Are we the active node?
   def self.active?
@@ -49,6 +49,6 @@ end
 
 # for debugging purposes
 if __FILE__ == $0
-  puts "active?: #{Whimsy.active?} hostname: #{Whimsy.hostname} migrating?: 
#{Whimsy.migrating?}"
-  puts "reason: #{Whimsy.updates_disallowed_reason}"
+  puts "active?: #{Status.active?} hostname: #{Status.hostname} migrating?: 
#{Status.migrating?}"
+  puts "reason: #{Status.updates_disallowed_reason}"
 end

Reply via email to