diff options
Diffstat (limited to 'lib/tasks/migrate_from_trac.rake')
-rw-r--r-- | lib/tasks/migrate_from_trac.rake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake index 8c6838ae2..dd129e4a5 100644 --- a/lib/tasks/migrate_from_trac.rake +++ b/lib/tasks/migrate_from_trac.rake @@ -676,6 +676,7 @@ namespace :redmine do puts puts "This project already exists in your Redmine database." print "Are you sure you want to append data to this project ? [Y/n] " + STDOUT.flush exit if STDIN.gets.match(/^n$/i) end project.trackers << TRACKER_BUG unless project.trackers.include?(TRACKER_BUG) @@ -726,6 +727,7 @@ namespace :redmine do puts "WARNING: a new project will be added to Redmine during this process." print "Are you sure you want to continue ? [y/N] " + STDOUT.flush break unless STDIN.gets.match(/^y$/i) puts @@ -733,6 +735,7 @@ namespace :redmine do default = options[:default] || '' while true print "#{text} [#{default}]: " + STDOUT.flush value = STDIN.gets.chomp! value = default if value.blank? break if yield value |