@@ -538,9 +538,14 namespace :redmine do | |||
|
538 | 538 | puts "Unable to create a project with identifier '#{identifier}'!" unless project.save |
|
539 | 539 | # enable issues and wiki for the created project |
|
540 | 540 | project.enabled_module_names = ['issue_tracking', 'wiki'] |
|
541 | else | |
|
542 | puts | |
|
543 | puts "This project already exists in your Redmine database." | |
|
544 | print "Are you sure you want to append data to this project ? [Y/n] " | |
|
545 | exit if STDIN.gets.match(/^n$/i) | |
|
541 | 546 |
end |
|
542 | project.trackers << TRACKER_BUG | |
|
543 |
project.trackers << TRACKER_FEATURE |
|
|
547 | project.trackers << TRACKER_BUG unless project.trackers.include?(TRACKER_BUG) | |
|
548 | project.trackers << TRACKER_FEATURE unless project.trackers.include?(TRACKER_FEATURE) | |
|
544 | 549 | @target_project = project.new_record? ? nil : project |
|
545 | 550 | end |
|
546 | 551 |
General Comments 0
You need to be logged in to leave comments.
Login now