Module: HubSsoLib::Server
- Defined in:
- lib/hub_sso_lib.rb
Overview
Module: Server #
(C) Hipposoft 2006 #
#
Purpose: DRb server to provide shared data across applications. #
Thanks to RubyPanther, rubyonrails IRC, for suggesting #
this after a cookie-based scheme failed. #
#
Include the module then call hubssolib_launch_server. The #
call will not return as the server runs indefinitely. #
#
Author: A.D.Hodgkinson #
#
History: 26-Oct-2006 (ADH): Created. #
Instance Method Summary collapse
Instance Method Details
#hubssolib_launch_server ⇒ Object
488 489 490 491 492 493 494 |
# File 'lib/hub_sso_lib.rb', line 488 def hubssolib_launch_server puts "Server: Starting at #{ HUB_CONNECTION_URI }" unless ENV['HUB_QUIET_SERVER'].nil? @@hub_session_factory = HubSsoLib::SessionFactory.new DRb.start_service(HUB_CONNECTION_URI, @@hub_session_factory, { :safe_level => 1 }) DRb.thread.join end |