Module: GerritEventRouter::Broker
- Defined in:
- lib/ger/broker.rb,
lib/ger/broker/amqp.rb
Defined Under Namespace
Modules: Config
Classes: AMQP, Base
Class Method Summary
collapse
Class Method Details
.connect(broker, &block) ⇒ Object
31
32
33
34
35
|
# File 'lib/ger/broker.rb', line 31
def connect(broker, &block)
if broker.instance_of?(GER::Broker::AMQP::Config) then
GER::Broker::AMQP.new(broker).connect(&block)
end
end
|