@@ -538,9 +538,14 namespace :redmine do | |||||
538 | puts "Unable to create a project with identifier '#{identifier}'!" unless project.save |
|
538 | puts "Unable to create a project with identifier '#{identifier}'!" unless project.save | |
539 | # enable issues and wiki for the created project |
|
539 | # enable issues and wiki for the created project | |
540 | project.enabled_module_names = ['issue_tracking', 'wiki'] |
|
540 | project.enabled_module_names = ['issue_tracking', 'wiki'] | |
541 | end |
|
541 | else | |
542 | project.trackers << TRACKER_BUG |
|
542 | puts | |
543 | project.trackers << TRACKER_FEATURE |
|
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) | |||
|
546 | end | |||
|
547 | project.trackers << TRACKER_BUG unless project.trackers.include?(TRACKER_BUG) | |||
|
548 | project.trackers << TRACKER_FEATURE unless project.trackers.include?(TRACKER_FEATURE) | |||
544 | @target_project = project.new_record? ? nil : project |
|
549 | @target_project = project.new_record? ? nil : project | |
545 | end |
|
550 | end | |
546 |
|
551 |
General Comments 0
You need to be logged in to leave comments.
Login now