Trac and Mantis importers: check that default configuration is loaded before processing.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1221 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
66594d46b2
commit
494a6ecfb0
|
@ -460,6 +460,14 @@ task :migrate_from_mantis => :environment do
|
||||||
end
|
end
|
||||||
|
|
||||||
puts
|
puts
|
||||||
|
if Redmine::DefaultData::Loader.no_data?
|
||||||
|
puts "Redmine configuration need to be loaded before importing data."
|
||||||
|
puts "Please, run this first:"
|
||||||
|
puts
|
||||||
|
puts " rake redmine:load_default_data RAILS_ENV=\"#{ENV['RAILS_ENV']}\""
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
puts "WARNING: Your Redmine data will be deleted during this process."
|
puts "WARNING: Your Redmine data will be deleted during this process."
|
||||||
print "Are you sure you want to continue ? [y/N] "
|
print "Are you sure you want to continue ? [y/N] "
|
||||||
break unless STDIN.gets.match(/^y$/i)
|
break unless STDIN.gets.match(/^y$/i)
|
||||||
|
|
|
@ -571,6 +571,14 @@ namespace :redmine do
|
||||||
end
|
end
|
||||||
|
|
||||||
puts
|
puts
|
||||||
|
if Redmine::DefaultData::Loader.no_data?
|
||||||
|
puts "Redmine configuration need to be loaded before importing data."
|
||||||
|
puts "Please, run this first:"
|
||||||
|
puts
|
||||||
|
puts " rake redmine:load_default_data RAILS_ENV=\"#{ENV['RAILS_ENV']}\""
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
puts "WARNING: a new project will be added to Redmine during this process."
|
puts "WARNING: a new project will be added to Redmine during this process."
|
||||||
print "Are you sure you want to continue ? [y/N] "
|
print "Are you sure you want to continue ? [y/N] "
|
||||||
break unless STDIN.gets.match(/^y$/i)
|
break unless STDIN.gets.match(/^y$/i)
|
||||||
|
|
Loading…
Reference in New Issue