end\r
\r
puts\r
+ if Redmine::DefaultData::Loader.no_data?\r
+ puts "Redmine configuration need to be loaded before importing data."\r
+ puts "Please, run this first:"\r
+ puts\r
+ puts " rake redmine:load_default_data RAILS_ENV=\"#{ENV['RAILS_ENV']}\""\r
+ exit\r
+ end\r
+ \r
puts "WARNING: Your Redmine data will be deleted during this process."\r
print "Are you sure you want to continue ? [y/N] "\r
break unless STDIN.gets.match(/^y$/i)\r
end
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."
print "Are you sure you want to continue ? [y/N] "
break unless STDIN.gets.match(/^y$/i)