chaosophist (kay-os-o-fist)

Chaosophistication – the subtle art of change

  • About
  • My Street Cred
  • What People Say
  • Made It
    • Edit
    • Delete
    • Tags
    • Autopost

    Rails Rake tips

    Multi-arm-rake

    This is the Hay Magnum-Hay CCM-8 Max Wheel Rake.  
    Now you might think it should have a name like: Hay Magnumator 8000 but it doesn't.  
    It doesn't take long playing with Rake before you starting thinking of it like the Hay Magnumator 8000.  By Rake, I'm referring to Ruby's Rake - the Ruby Build Automator ("Make for Ruby").
    You can access your list of available Rake Tasks from your Rails project simply by typing 

    rake -T or bundle exec rake -T

    (if you're using Bundler)
    But if you do a lot of pre-run tasks you're Rake Task list can end up looking like this:
    Screen_shot_2011-12-09_at_3
    Here's a tip:
    If some of these tasks are actually "private" tasks that only get called by other Rake tasks, 
    leave off the "desc" line in the task definition.  And Voila, your rake -T list will get a lot cleaner.

    Thanks to Erik Debill for his nice post on Rake and some Advanced Tips for using it.
    • 9 December 2011
    • Views
    • Permalink
    • Tweet
    • 0 responses
    • Like
    • Comment
  • Archive

    2012 (4)
    February (2)
    January (2)
    2011 (68)
    December (3)
    November (5)
    October (2)
    August (2)
    July (5)
    June (9)
    May (11)
    April (8)
    March (12)
    February (3)
    January (8)
    2010 (3)
    October (2)
    September (1)
    2009 (12)
    December (2)
    November (2)
    October (2)
    September (1)
    July (1)
    June (3)
    April (1)
    Tweets

    Sites I Like

    • 37 Signals
    • My Tech Tumblr
    • Dutch Rico
    • The Pros @ Adaptive Path
    • Martin Fowler /Thought Works
    • My Tweets
    • Kelway on UX
    • Petersen on UX/Product
    • Filipov on Travel
    • Travel Tech News
  • About Ashley Raiteri

    biz-technologist, data lover who dotes on his family, plays with tech. Europhile, travel junkie, startup-addict, CTO @ Flextrip (Tours & Activities Tech); Founding CTO of Everbread (Travel Search Tech).

  • Follow Me

      TwitterLinkedInTumblr

    Get Updates

    Follow this Space »
    You're following this Space (Edit)
    You're a contributor here (Edit)
    This is your Space (Edit)
    Follow by email »
    Get the latest updates in your email box automatically.
    Loading...
    Subscribe via RSS

Theme created for Posterous by Obox