##// END OF EJS Templates
Added namespace for Redmine specific rake tasks....
Jean-Philippe Lang -
r680:e76d153064ee
parent child
Show More
@@ -0,0 +1,9
1 def deprecated_task(name, new_name)
2 task name=>new_name do
3 $stderr.puts "\nNote: The rake task #{name} has been deprecated, please use the replacement version #{new_name}"
4 end
5 end
6
7 deprecated_task :load_default_data, "redmine:load_default_data"
8 deprecated_task :migrate_from_mantis, "redmine:migrate_from_mantis"
9 deprecated_task :migrate_from_trac, "redmine:migrate_from_trac"
@@ -37,7 +37,7 Supported databases:
37 It will create tables and an administrator account.
37 It will create tables and an administrator account.
38
38
39 5. Insert default configuration data in database:
39 5. Insert default configuration data in database:
40 rake load_default_data RAILS_ENV="production"
40 rake redmine:load_default_data RAILS_ENV="production"
41 It will load default roles, trackers, statuses, workflows and enumerations.
41 It will load default roles, trackers, statuses, workflows and enumerations.
42 This step is optional (but recommended), as you can define your
42 This step is optional (but recommended), as you can define your
43 own configuration from sratch.
43 own configuration from sratch.
@@ -1,5 +1,6
1 desc 'Load default configuration data'
1 desc 'Load Redmine default configuration data'
2
2
3 namespace :redmine do
3 task :load_default_data => :environment do
4 task :load_default_data => :environment do
4 include GLoc
5 include GLoc
5 set_language_if_valid('en')
6 set_language_if_valid('en')
@@ -163,4 +164,5 rescue => error
163 puts "Error: " + error
164 puts "Error: " + error
164 puts "Default configuration data can't be loaded."
165 puts "Default configuration data can't be loaded."
165 end
166 end
166 end No newline at end of file
167 end
168 end
@@ -21,6 +21,7 require 'active_record'
21 require 'iconv'
21 require 'iconv'
22 require 'pp'
22 require 'pp'
23
23
24 namespace :redmine do
24 task :migrate_from_mantis => :environment do
25 task :migrate_from_mantis => :environment do
25
26
26 module MantisMigrate
27 module MantisMigrate
@@ -483,3 +484,4 task :migrate_from_mantis => :environment do
483 MantisMigrate.establish_connection db_params
484 MantisMigrate.establish_connection db_params
484 MantisMigrate.migrate
485 MantisMigrate.migrate
485 end
486 end
487 end
General Comments 0
You need to be logged in to leave comments. Login now