Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add rake tolk:import_assets for copying asstes to the app

  • Loading branch information...
commit 0cf67e05821ec4b81a78baa6da1908b46c54e17d 1 parent 66a0a57
Pratik authored

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
@@ -22,4 +22,13 @@ namespace :tolk do
22 22
       puts "#{bt.phrase.key} - #{bt.text}"
23 23
     end
24 24
   end
  25
+
  26
+  desc "Copies required assets from tolk to application's public/ directory"
  27
+  task :import_assets do
  28
+    tolk_assets = File.expand_path(File.join(File.dirname(__FILE__), '../../public/tolk'))
  29
+    command = "cp -R #{tolk_assets} #{Rails.root}/public/"
  30
+    puts command
  31
+    system(command)
  32
+  end
  33
+
25 34
 end

0 notes on commit 0cf67e0

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