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

Version Path
ruby_rabbitmq_janus-4.0.1 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.1.pre.1265973744 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.1.pre.1265506307 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.1.pre.1265140558 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.1001345090 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.1001181479 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.1001132533 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.1001107243 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.1001043172 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.949167646 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.946892338 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.946565704 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.939149205 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.939137013 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.939133437 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.939119110 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.939113634 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-4.0.0.pre.850041590 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.1 lib/generators/ruby_rabbitmq_janus/install_generator.rb