Sha256: 833601e23ba4ecd9323cca031b33fb5a19191b70c89b216ea860a07f9e25280f

Contents?: true

Size: 519 Bytes

Versions: 10

Compression:

Stored size: 519 Bytes

Contents

Appfuel::Initialize.define('global.message_broker') do |config, container|
  unless config.key?(:sneakers)
    fail "[initializer message_broker] :sneakers not found"
  end

  unless container['message_brokers.consumer_keys'].is_a?(Array)
    fail "[initializer message_broker] message_borker.consumer_keys " +
         "must be an Array"
  end

  require 'sneakers'
  require 'sneakers/runner'

  Sneakers.configure(config[:sneakers])


  container.register("message_brokers.runner_class", Sneakers::Runner)
  nil
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
appfuel-service-0.2.11 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.10 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.9 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.8 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.7 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.6 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.5 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.3 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.2 lib/appfuel/service/initializers/message_broker.rb
appfuel-service-0.2.1 lib/appfuel/service/initializers/message_broker.rb