The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Rake: --dry-run, --trace, and -T

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jay Fields

Posts: 765
Nickname: jayfields
Registered: Sep, 2006

Jay Fields is a software developer for ThoughtWorks
Rake: --dry-run, --trace, and -T Posted: Dec 13, 2006 4:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Jay Fields.
Original Post: Rake: --dry-run, --trace, and -T
Feed Title: Jay Fields Thoughts
Feed URL: http://blog.jayfields.com/rss.xml
Feed Description: Thoughts on Software Development
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jay Fields
Latest Posts From Jay Fields Thoughts

Advertisement
When using rake it can often be useful to know the order in which tasks are being executed. To list the execution order you can issue the following command.
rake --dry-run
The --dry-run option works well; however, it does not report tasks that are explicitly invoked.
Rake::Task["test:units"].invoke
The above code can be used to explicitly invoke a task (test:units in the example). Rails uses this in various database and testing tasks. However, it's still possible to see which tasks are being executed. The following code will show each task as it's executed.
rake --trace
The --trace option provides a lot of information, but if you have grep available it can be trimmed down easily.
rake --trace | grep Execute
Also, when running rake with the -T option you can also pass another parameter to list only the commands that contain that parameter. For example, the following code returns all the tasks that contain 'db' in their description.
rake -T db

Read: Rake: --dry-run, --trace, and -T

Topic: Quick fun tip #1: Auto Complete with Ruby on Rails Previous Topic   Next Topic Topic: That sound you just heard…

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use