module Bifrost
Bifrost
is a pub/sub gem built on top of the Azure MessageBus system
Major.Minor.Patch version numbering
Constants
- MAJOR_VERSION
The major version of
Bifrost
, updated only for major changes that are likely to require modification to Filmpond apps.- MINOR_VERSION
The minor version of
Bifrost
, updated for new feature releases.- PATCH_VERSION
The patch version of
Bifrost
, updated only for bug fixes from the last feature release.- VERSION
The full version as a string.
Public Class Methods
Get an instance of the bus
# File lib/bifrost.rb, line 42 def self.bus Bifrost::Bus.new end
Simple utlity that creates a topic and a single subscriber for the given topic. The topic is returned
# File lib/bifrost.rb, line 34 def self.create_topic_with_subscriber(topic, subscriber) topic = Bifrost::Topic.new(topic) topic.save topic.add_subscriber(Bifrost::Subscriber.new(subscriber)) topic end
Helper method for other types in the Bifrost
to know when logging is turned on
# File lib/bifrost.rb, line 28 def self.debug? ENV['BIFROST_DEBUG'] end
Workers and the infrastructure can log using the standard level of granularity affored to any standard logger (i.e. info, debug, error levels etc)
# File lib/bifrost.rb, line 22 def self.logger=(log_provider) Celluloid.logger = log_provider end
Creates a manager instance
# File lib/bifrost.rb, line 47 def self.manager Bifrost::Manager.new end