Commit ac1d90e91ed2b919ed4e1526444d6e89b58370b3:
Allow access to last chosen host
Branch: refs/heads/master
Author: Sebb <[email protected]>
Committer: Sebb <[email protected]>
Pusher: sebb <[email protected]>
------------------------------------------------------------
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