whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bazley <s...@apache.org>
Subject [whimsy.git] [1/1] Commit ac1d90e: Allow access to last chosen host
Date Fri, 01 Apr 2016 09:37:46 GMT
Commit ac1d90e91ed2b919ed4e1526444d6e89b58370b3:
    Allow access to last chosen host


Branch: refs/heads/master
Author: Sebb <sebb@apache.org>
Committer: Sebb <sebb@apache.org>
Pusher: sebb <sebb@apache.org>

------------------------------------------------------------
lib/whimsy/asf/ldap.rb                                       | +++++ 
------------------------------------------------------------
5 changes: 5 additions, 0 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 176e9b6..3eee18a 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -623,6 +623,11 @@ def self.http_auth(string, &block)
       end
     end
 
+    # Return the last chosen host (if any)
+    def self.host
+      @host
+    end
+
     # determine what LDAP hosts are available
     def self.hosts
       return @hosts if @hosts # cache the hosts list

Mime
View raw message