Sha256: b69b0ef20f6b6c4e4d5685725a69d66475efa3e018d72de59fc56683ae610211

Contents?: true

Size: 538 Bytes

Versions: 9

Compression:

Stored size: 538 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_config.rb', 'config/initializers/cequens.rb'
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cequens-0.1.2 lib/generators/cequens/config_generator.rb
cequens-0.1.1 lib/generators/cequens/config_generator.rb
cequens-0.1.0 lib/generators/cequens/config_generator.rb
cequens-0.0.9 lib/generators/cequens/config_generator.rb
cequens-0.0.8 lib/generators/cequens/config_generator.rb
cequens-0.0.7 lib/generators/cequens/config_generator.rb
cequens-0.0.6 lib/generators/cequens/config_generator.rb
cequens-0.0.5 lib/generators/cequens/config_generator.rb
cequens-0.0.4 lib/generators/cequens/config_generator.rb