Class: TestAdapter

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

Constant Summary collapse

ConnectionFailed =
Class.new(Exception)

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=, subscribe

Class Method Details

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



6
7
8
9
# File 'lib/warren/adapters/test_adapter.rb', line 6

def self.publish queue_name, payload, &blk
  raise TestAdapter::ConnectionFailed if fail?
  true
end