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