lib/adhearsion/drb/plugin/service.rb in adhearsion-drb-0.1.0 vs lib/adhearsion/drb/plugin/service.rb in adhearsion-drb-1.0.0
- old
+ new
@@ -20,11 +20,11 @@
end
##
# Stop the DRb service
def stop
- logger.info "Stoping DRb on #{config.host}:#{config.port}"
+ logger.info "Stopping DRb on #{config.host}:#{config.port}"
DRb.stop_service
end
##
# Access to Drb plugin configuration
@@ -34,10 +34,10 @@
##
# Creates a plain object and injects the Adhearsion RPC methods configured via plugins
# @return [Object]
def create_drb_door
- Plugin.add_rpc_methods Object.new
+ config[:shared_object]
end
##
# Creates an array that maps the DRb ACL format, that is:
# - a set of zero or more allowed IP addresses. Any allowed IP address is preceded by an "allow" element