Posted By

supertabaluga on 10/06/10


template rake Task

Versions (?)

how to create a rake task from a template

 / Published in: Rails


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.