Permalink
Browse files

Add rake tolk:import_assets for copying asstes to the app

  • Loading branch information...
1 parent 66a0a57 commit 0cf67e05821ec4b81a78baa6da1908b46c54e17d @lifo lifo committed Jun 4, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/tasks/tolk_tasks.rake
@@ -22,4 +22,13 @@ namespace :tolk do
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

0 comments on commit 0cf67e0

Please sign in to comment.