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-3.0.0 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.387 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.385 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.384 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.382 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.366 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.364 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.358 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.354 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.352 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.351 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.336 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.335 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.334 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.330 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.328 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-3.0.0.pre.327 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.7.2 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.322 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.320 lib/generators/ruby_rabbitmq_janus/install_generator.rb