Sha256: 11c63b391bd76b5086671f613e94e59452c1d39a5ce908e859509e38ab4d7efa
Contents?: true
Size: 1.06 KB
Versions: 9
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true # This test disable this gems execution when you running an task with rake if File.basename($PROGRAM_NAME) == 'rake' # Configure RRJ for rake task ::RRJ = RubyRabbitmqJanus::RRJTask.new else # Loading classes Actions to rails application require 'actions' # If you used gem config for manage your ENV variables uncomment this line # @see https://rubygems.org/gems/config # Settings.reload! # Initialize gem and create a number of session by Janus instance. ::RRJ = RubyRabbitmqJanus::RRJ.new # Use this initializer if your application use 'Admin/Monitor API' # @see https://janus.conf.meetecho.com/docs/admin.html # ::RRJ = RubyRabbitmqJanus::RRJAdmin.new # Send a block code to thread for manage event given by Janus in public queue Rails.configuration.after_initialize do # If you don't want listen a standard queue, comment this block and # "require 'actions'" also actions = RubyRabbitmqJanus::ActionEvents.new.actions RubyRabbitmqJanus::Janus::Concurrencies::Event.instance.run(&actions) end end
Version data entries
9 entries across 9 versions & 1 rubygems