Sha256: fe878c4717f78b51ddb2cb93f7d7d2d80017f67383bdecef9d5b6d7357bf0308
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
# frozen_string_literal: true module RubyRabbitmqJanus module Generators # Create an class for generate a initializer class InitializerGenerator < Rails::Generators::Base desc 'Generate a initializer to this gem for rails application.' # Create an initializer def copy_initializer initializer 'ruby_rabbitmq_janus.rb' do "# frozen_string_literal: true\n\n" \ "::RRJ = RubyRabbitmqJanus::RRJ.new\n"\ '::Events = RubyRabbitmqJanus::Janus::Concurrencies::Event.instance' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_rabbitmq_janus-1.0.5 | lib/generators/ruby_rabbitmq_janus/initializer_generator.rb |