Class: DummyAdapter

Inherits:
Warren::Queue show all
Defined in:
lib/warren/adapters/dummy_adapter.rb

Constant Summary

Constants inherited from Warren::Queue

Warren::Queue::InvalidAdapter, Warren::Queue::NoAdapterSet, Warren::Queue::NoBlockGiven, Warren::Queue::NoConnectionDetails

Class Method Summary collapse

Methods inherited from Warren::Queue

adapter, adapter=, connection, connection=, inherited, logger, logger=

Class Method Details

.publish(queue_name, payload, &blk) ⇒ Object



5
6
7
# File 'lib/warren/adapters/dummy_adapter.rb', line 5

def self.publish queue_name, payload, &blk
  logger.info "publishing #{payload.inspect} to #{queue_name}"
end

.subscribe(queue_name, &block) ⇒ Object



9
10
11
# File 'lib/warren/adapters/dummy_adapter.rb', line 9

def self.subscribe queue_name, &block
  logger.info "subscribing to #{queue_name}"
end