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

Version Path
factor-connector-api-0.0.14 ./lib/factor-connector-api.rb
factor-connector-api-0.0.13 ./lib/factor-connector-api.rb
factor-connector-api-0.0.12 ./lib/factor-connector-api.rb
factor-connector-api-0.0.11 ./lib/factor-connector-api.rb
factor-connector-api-0.0.10 ./lib/factor-connector-api.rb
factor-connector-api-0.0.9 ./lib/factor-connector-api.rb
factor-connector-api-0.0.8 ./lib/factor-connector-api.rb
factor-connector-api-0.0.7 ./lib/factor-connector-api.rb
factor-connector-api-0.0.6 ./lib/factor-connector-api.rb
factor-connector-api-0.0.5 ./lib/factor-connector-api.rb
factor-connector-api-0.0.4 ./lib/factor-connector-api.rb
factor-connector-api-0.0.3 ./lib/factor-connector-api.rb
factor-connector-api-0.0.2 ./lib/factor-connector-api.rb
factor-connector-api-0.0.1 ./lib/factor-connector-api.rb