Sha256: f9a282e5433d68c064b9ffec5d461383b842ef763624d773a90ba8f870d2b86d

Contents?: true

Size: 566 Bytes

Versions: 9

Compression:

Stored size: 566 Bytes

Contents

require "frenchy/core_ext"

require "frenchy/client"
require "frenchy/collection"
require "frenchy/error"
require "frenchy/instrumentation"
require "frenchy/model"
require "frenchy/request"
require "frenchy/resource"
require "frenchy/veneer"
require "frenchy/version"

module Frenchy
  class_eval do
    @services = {}
  end

  def self.register_service(name, options={})
    @services[name.to_s] = Frenchy::Client.new(name, options)
  end

  def self.find_service(name)
    @services[name.to_s] || raise(Frenchy::Error, "No service '#{name}' registered")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
frenchy-0.4.0 lib/frenchy.rb
frenchy-0.3.0 lib/frenchy.rb
frenchy-0.2.9 lib/frenchy.rb
frenchy-0.2.8 lib/frenchy.rb
frenchy-0.2.7 lib/frenchy.rb
frenchy-0.2.6 lib/frenchy.rb
frenchy-0.2.5 lib/frenchy.rb
frenchy-0.2.4 lib/frenchy.rb
frenchy-0.2.3 lib/frenchy.rb