mirror of
https://github.com/jimeh/bunnyrun.git
synced 2026-02-19 07:56:40 +00:00
22 lines
381 B
Ruby
22 lines
381 B
Ruby
require 'bunnyrun/consumer'
|
|
require 'bunnyrun/cli'
|
|
require 'bunnyrun/runner'
|
|
require 'bunnyrun/version'
|
|
|
|
module BunnyRun
|
|
class << self
|
|
def publish(exchange_name, payload, attrs = {}); end
|
|
|
|
def after_start(&block)
|
|
callbacks[:after_start] ||= []
|
|
callbacks[:after_start] << block
|
|
end
|
|
|
|
private
|
|
|
|
def callbacks
|
|
@callbacks ||= {}
|
|
end
|
|
end
|
|
end
|