Ruby on Rails mini-blogs

PAGE NO LONGER MAINTAINED, all articles were moved to http://www.eq8.eu/tils where I'll continue adding more ! This page contains simple small Ruby on Rails and web-development hints that are too small for a real blog. You can visit my real blog at http://www.eq8.eu

Tuesday, March 31, 2015

Override Rails default rake task


desc "this will be now a default task"
task info: :environment do
    puts 'Run rake test to test'
end

task(:default).clear.enhance(['info'])
source
  • http://stackoverflow.com/questions/8112074/overriding-rails-default-rake-tasks
  • http://blog.codingspree.net/2012/04/26/overwriting_rake_spec_task.html
  • https://github.com/equivalent/scrapbook2/blob/master/archive/mini-blogs/2015-03-30-override-default-rake-task-of-rails.md
Posted by Equivalent at 5:02 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Post Older Post Home

Blog Archive

  • ►  2016 (1)
    • ►  March (1)
  • ▼  2015 (10)
    • ►  October (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
    • ▼  March (3)
      • Run multiple instances of RSpec on same machine
      • Override Rails default rake task
      • Carrierwave uploader not triggering proces in RSpec
    • ►  February (1)
    • ►  January (1)
  • ►  2014 (9)
    • ►  December (2)
    • ►  November (1)
    • ►  October (1)
    • ►  July (1)
    • ►  May (3)
    • ►  April (1)

About Me

My photo
Equivalent
London, United Kingdom
View my complete profile
Simple theme. Powered by Blogger.