Sha256: 10666ec4f8b510195e61ce6d779d106a929ebea09cdedc306220ad2a7d82e666

Contents?: true

Size: 902 Bytes

Versions: 36

Compression:

Stored size: 902 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', __FILE__)

      # 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

36 entries across 36 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.5.0.pre.210 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.5.0.pre.209 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.4.0.pre.208 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.3.1.pre.201 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.3.1.pre.198 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.3.0.pre.197 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.3.0.pre.196 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.3.0 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.3.0.pre.194 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.3.0.pre.192 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.3.0.pre.170 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.2 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.1 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.1.pre.181 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.1.pre.180 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.179 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.0 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.177 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.173 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.170 lib/generators/ruby_rabbitmq_janus/install_generator.rb