lib/ury_rapid/services/set.rb
# Starts a specific service
#
# This should be performed in the EventMachine run loop, as certain
# services will spin up EventMachine tasks here.
#
# @api      semipublic
# @example  Start the service :foo
#   set.start(:foo)
#
# @param name [Symbol]
#   The name of the service to start.
#
# @return [void]
Starts a specific service
This should be performed in the EventMachine run loop, as certain
services will spin up EventMachine tasks here.
Starts a specific service This should be performed in the EventMachine run loop as certain services will spin up EventMachine tasks here .
def start(name)
        service_class, service_config = @services.fetch(name)
        environment.insert_components('/') { tree(name, :sub_root) }
        service_view = environment.with_local_root(environment.find("/#{name}"))
        mod = service_class.new(service_view)
        mod.instance_eval(&service_config)
        mod.run
      end
def start ( name ) service_class , service_config = @services . fetch ( name ) environment . insert_components ( '/' ) { tree ( name , :sub_root ) } service_view = environment . with_local_root ( environment . find ( "/#{name}" ) ) mod = service_class . new ( service_view ) mod . instance_eval ( & service_config ) mod . run end
Starts a specific service
This should be performed in the EventMachine run loop, as certain
services will spin up EventMachine tasks here.
Starts a specific service This should be performed in the EventMachine run loop as certain services will spin up EventMachine tasks here .
None
void
name
The name of the service to start.
The name of the service to start .
api
None
example
Start the service :foo set.start(:foo)
Start the service : foo set . start ( : foo )