Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a setup task that does all the legwork of getting Tolk running in…

… your app
  • Loading branch information...
commit 77d0ed33779aba34b92ccf3af78311539aff924c 1 parent 18fb33c
David Heinemeier Hansson authored June 06, 2010

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  lib/tasks/tolk_tasks.rake
9  lib/tasks/tolk_tasks.rake
... ...
@@ -1,4 +1,13 @@
1 1
 namespace :tolk do
  2
+  desc "Add database tables, copy over the assets, and import existing translations"
  3
+  task :setup => :environment do
  4
+    Rake::Task['tolk:import_assets'].invoke
  5
+    system("rails generate tolk_migration")
  6
+    Rake::Task['db:migrate'].invoke
  7
+    Rake::Task['tolk:sync'].invoke
  8
+    Rake::Task['tolk:import'].invoke
  9
+  end
  10
+  
2 11
   desc "Sync Tolk with the default locale's yml file"
3 12
   task :sync => :environment do
4 13
     Tolk::Locale.sync!

0 notes on commit 77d0ed3

Please sign in to comment.
Something went wrong with that request. Please try again.