Sha256: ec676c02a001e5d5dadb0fc6bc0e014946154e3f62cce516b85aeadd820573ed

Contents?: true

Size: 581 Bytes

Versions: 123

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  # Module for generators
  module Generators
    # Create an class for generate a custom configuration file
    class ConfigurationGenerator < Rails::Generators::Base
      desc 'Generate a custom configuration file.'

      # Define root path for original file a copied
      source_root File.expand_path('../../../config', __dir__)

      # Copy a default configuration in config folder to Rails app
      def copy_configuration
        template 'default.yml', 'config/ruby-rabbitmq-janus.yml'
      end
    end
  end
end

Version data entries

123 entries across 123 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.2.pre.319 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.318 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.317 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.316 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.315 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.314 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.312 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.310 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.309 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.308 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.307 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.306 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.305 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.302 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.297 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.296 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.286 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.285 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.2.pre.284 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.7.1 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb