Sha256: d1f84e5cebf89f5bcbca30c3b7ab7987611535c05ad805908a92f668bcb13371
Contents?: true
Size: 613 Bytes
Versions: 14
Compression:
Stored size: 613 Bytes
Contents
require_relative './service_manager.rb' module Factor module Connector @@service_managers={} def self.load(filename) service_manager = Factor::Connector::ServiceManager.load(filename) service_id = service_manager.definition.id @@service_managers[service_id] = service_manager end def self.service(id, &block) service_manager = Factor::Connector::ServiceManager.new service_manager.service(id,&block) @@service_managers[id] = service_manager end def self.get_service_manager(service_id) @@service_managers[service_id] end end end
Version data entries
14 entries across 14 versions & 1 rubygems