Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add rake tolk:import_assets for copying asstes to the app

  • Loading branch information...
commit 0cf67e05821ec4b81a78baa6da1908b46c54e17d 1 parent 66a0a57
@lifo lifo authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/tasks/tolk_tasks.rake
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.