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.2.1.pre.181 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.1.pre.180 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.179 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.177 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.173 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.170 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.168 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.167 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.166 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.165 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.164 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.161 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.159 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.2.0.pre.42 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.1.1 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.1.1.pre.139 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.1.0 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.1.0.pre.137 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb
ruby_rabbitmq_janus-2.1.0.pre.136 lib/generators/ruby_rabbitmq_janus/configuration_generator.rb