mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 22:06:47 +00:00
Adds publishing manager class
This commit is contained in:
parent
9ca53ced37
commit
1756a6adbc
10
lib/outboxable/publishing_manager.rb
Normal file
10
lib/outboxable/publishing_manager.rb
Normal file
@ -0,0 +1,10 @@
|
||||
module Outboxable
|
||||
class PublishingManager
|
||||
def self.publish(resource:)
|
||||
case Outboxable.configuration.message_broker
|
||||
when :rabbitmq
|
||||
Outboxable::RabbitMq::Publisher.new(resource:).publish
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue
Block a user