Sha256: 6b0047dd0e76fc75ca7ae02d03aa69463012759e383bb055eb71f0bd9c3302f5

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'

module Cequens
  module Generators
    # rails g Cequens:config
    class ConfigGenerator < Rails::Generators::Base # :nodoc:
      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

      desc <<~DESC
        Description:
            Copies Cequens configuration file to your application's initializer directory.
      DESC

      def copy_config_file
        template 'cequens_template.rb', 'config/initializers/cequens.rb'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cequens-0.0.3 lib/generators/cequens/config_generator.rb
cequens-0.0.2 lib/generators/cequens/config_generator.rb
cequens-0.0.1 lib/generators/cequens/config_generator.rb