Sha256: 468d0533108e8a5df05b7186811e4af69e72f9487299da3fef09d44618f89d4c

Contents?: true

Size: 490 Bytes

Versions: 12

Compression:

Stored size: 490 Bytes

Contents

module RedisImporter
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)  
      argument :file_storage_type, :type => :string

      def generate_collection
        copy_file "redis_importer.example.yml", "config/redis_importer.yml"
        file_basename = "#{file_storage_type.downcase}_collection"
        copy_file "#{file_basename}.example.yml", "config/#{file_basename}.yml"
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
redis_importer-1.1.7 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.1.6 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.1.5 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.1.4 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.1.3 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.1.2 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.1.1 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.1.0 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.0.2 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.0.1 lib/generators/redis_importer/install/install_generator.rb
redis_importer-1.0.0 lib/generators/redis_importer/install/install_generator.rb
redis_importer-0.1.0 lib/generators/redis_importer/install/install_generator.rb