Project

General

Profile

Patch #3608 » migrate_from_mantis.rake.patch

Mykhaylo Sorochan, 2009-07-13 09:26

View differences:

migrate_from_mantis.rake (working copy)
482 482
               :database => 'bugtracker', 
483 483
               :host => 'localhost', 
484 484
               :username => 'root', 
485
               :password => '' }
485
               :password => '',
486
               :encoding => '' }
486 487

  
487 488
  puts				
488 489
  puts "Please enter settings for your Mantis database"  
489
  [:adapter, :host, :database, :username, :password].each do |param|
490
  [:adapter, :host, :database, :username, :password, :encoding].each do |param|
490 491
    print "#{param} [#{db_params[param]}]: "
491 492
    value = STDIN.gets.chomp!
492 493
    db_params[param] = value unless value.blank?
493 494
  end
494 495
    
495 496
  while true
496
    print "encoding [UTF-8]: "
497
    print "data encoding [UTF-8]: "
497 498
    encoding = STDIN.gets.chomp!
498 499
    encoding = 'UTF-8' if encoding.blank?
499 500
    break if MantisMigrate.encoding encoding
(2-2/2)