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



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

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

.subscribe(queue_name, &block) ⇒ Object



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

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