You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sebastian Bazley <se...@apache.org> on 2016/04/01 11:37:46 UTC

[whimsy.git] [1/1] Commit ac1d90e: Allow access to last chosen host

Commit ac1d90e91ed2b919ed4e1526444d6e89b58370b3:
    Allow access to last chosen host


Branch: refs/heads/master
Author: Sebb <se...@apache.org>
Committer: Sebb <se...@apache.org>
Pusher: sebb <se...@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