Sha256: e2d4f08c7c3c1db600cf5522e95831c797bc22cf0b3b1e860615961476b62b6b

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

require 'rails/generators'

module Indexers
  module Generators
    class InstallGenerator < Rails::Generators::Base

      source_root File.expand_path('../templates', __FILE__)

      def create_initializer_file
        copy_file 'initializer.rb', 'config/initializers/indexers.rb'
      end

      def create_configuration_file
        copy_file 'configuration.yml', 'config/elasticsearch.yml'
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
indexers-5.1.1 lib/generators/indexers/install/install_generator.rb
indexers-5.1.0 lib/generators/indexers/install/install_generator.rb
indexers-4.1.0.1 lib/generators/indexers/install/install_generator.rb
indexers-4.1.0.0 lib/generators/indexers/install/install_generator.rb