lib/tasks/tolk_tasks.rake in tolk-1.0 vs lib/tasks/tolk_tasks.rake in tolk-1.1.0
- old
+ new
@@ -1,15 +1,14 @@
namespace :tolk do
desc "Add database tables, copy over the assets, and import existing translations"
task :setup => :environment do
- Rake::Task['tolk:import_assets'].invoke
system("rails generate tolk_migration")
Rake::Task['db:migrate'].invoke
Rake::Task['tolk:sync'].invoke
Rake::Task['tolk:import'].invoke
end
-
+
desc "Sync Tolk with the default locale's yml file"
task :sync => :environment do
Tolk::Locale.sync!
end
@@ -28,16 +27,8 @@
task :html_keys => :environment do
bad_translations = Tolk::Locale.primary_locale.translations_with_html
bad_translations.each do |bt|
puts "#{bt.phrase.key} - #{bt.text}"
end
- end
-
- desc "Copies required assets from tolk to application's public/ directory"
- task :import_assets do
- tolk_assets = File.expand_path(File.join(File.dirname(__FILE__), '../../public/tolk'))
- command = "cp -R #{tolk_assets} #{Rails.root}/public/"
- puts command
- system(command)
end
end