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-2.7.1.pre.274 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.7.0.pre.272 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.7.0 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.7.0.pre.269 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.7.0.pre.267 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.263 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.261 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.260 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.259 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.258 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.247 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.246 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.244 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.240 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.239 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.238 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.233 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.229 lib/generators/ruby_rabbitmq_janus/install_generator.rb
ruby_rabbitmq_janus-2.6.0.pre.228 lib/generators/ruby_rabbitmq_janus/install_generator.rb