Posted By

supertabaluga on 10/06/10


Tagged

template rake Task


Versions (?)

how to create a rake task from a template


 / Published in: Rails
 

URL: http://railscasts.com/episodes/148-app-templates-in-rails-2-3

put this in a template to create a rake task

  1. rakefile("hurra.rake") do
  2. <<-TASK
  3. namespace :hurra do
  4. desc "legt einen User an mit authlogic"
  5. task :user => :environment do
  6. %x{bundle install}
  7. %x{r g nifty:layout}
  8. end
  9. end
  10. TASK
  11. end

Report this snippet  

You need to login to post a comment.