Sha256: dfeed832e924338491ee442de8f982643d4a5131e84725b6deb008a7af3b8ed2
Contents?: true
Size: 898 Bytes
Versions: 87
Compression:
Stored size: 898 Bytes
Contents
# frozen_string_literal: true module RubyRabbitmqJanus module Generators # Create an class for generate a installing class InstallGenerator < Rails::Generators::Base desc 'Install RubyRabbitmqJanus in your Rails application' APPLICATION = <<-AUTOLOAD # Load RubyRabbitmqJanus actions events code blocks config.autoload_paths += Dir[Rails.root.join('app', 'ruby_rabbitmq_janus')] AUTOLOAD source_root File.expand_path('templates', __dir__) # Generate files with default code def add_actions # Create an class template 'actions.rb', 'app/ruby_rabbitmq_janus/actions.rb' # Add to application.rb application { APPLICATION } # Add initializer generate 'ruby_rabbitmq_janus:initializer' # Copy basic request generate 'ruby_rabbitmq_janus:default_request' end end end end
Version data entries
87 entries across 87 versions & 1 rubygems