summaryrefslogtreecommitdiff
path: root/lib/tasks/development_init.rake
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-04-18 19:52:42 +0200
committerhukl <contact@smyck.org>2009-04-18 19:52:42 +0200
commit6b936cf82f5357f97aaa909ee4f137b944080ffc (patch)
treed2a0a6946e87737b0898695bc5a7671f4f301c90 /lib/tasks/development_init.rake
parent1970df667946a8b55ad0ad5bc140b3d9e5515d20 (diff)
added update_authors_on_pages task. run after importing authors
Diffstat (limited to 'lib/tasks/development_init.rake')
-rw-r--r--lib/tasks/development_init.rake6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tasks/development_init.rake b/lib/tasks/development_init.rake
index 00ef83a..cf97cc3 100644
--- a/lib/tasks/development_init.rake
+++ b/lib/tasks/development_init.rake
@@ -28,6 +28,12 @@ namespace :cccms do
28 importer.import_authors 28 importer.import_authors
29 end 29 end
30 30
31 desc "Update authors on pages"
32 task :update_authors_on_pages => :environment do |t|
33 i = ChaosImporter.new("#{RAILS_ROOT}/db/updates")
34 i.update_authors_on_pages
35 end
36
31 desc "Import the old XML Files" 37 desc "Import the old XML Files"
32 task :import_updates => :environment do |t| 38 task :import_updates => :environment do |t|
33 i = ChaosImporter.new("#{RAILS_ROOT}/db/updates") 39 i = ChaosImporter.new("#{RAILS_ROOT}/db/updates")