Sha256: cc258db7d2d516407851f988d955bc6d8014baab3ba45ad1fd462163d789218b

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 Bytes

Contents

require 'securerandom'
require 'rails/generators'
require 'rails/generators/migration'

module ExpressTranslate
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path("../templates", __FILE__)
    
    include ExpressTranslate
    
    # Copy config file for my gem
    def create_file_config
      template "config/express_translate.yml", "config/express_translate.yml"
    end
    
    # Seed data for redis database
    def seeds_data
      ExpressTranslate.seeds
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
express_translate-1.0.8 lib/generators/express_translate/install_generator.rb
express_translate-1.0.7 lib/generators/express_translate/install_generator.rb
express_translate-1.0.6 lib/generators/express_translate/install_generator.rb
express_translate-1.0.5 lib/generators/express_translate/install_generator.rb
express_translate-1.0.4 lib/generators/express_translate/install_generator.rb
express_translate-1.0.3 lib/generators/express_translate/install_generator.rb
express_translate-1.0.2 lib/generators/express_translate/install_generator.rb
express_translate-1.0.1 lib/generators/express_translate/install_generator.rb