Skip to content

Commit

Permalink
Add rake tolk:import_assets for copying asstes to the app
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Jun 4, 2010
1 parent 66a0a57 commit 0cf67e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/tasks/tolk_tasks.rake
Expand Up @@ -22,4 +22,13 @@ namespace :tolk do
puts "#{bt.phrase.key} - #{bt.text}" puts "#{bt.phrase.key} - #{bt.text}"
end end
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 end

0 comments on commit 0cf67e0

Please sign in to comment.