aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/command_line.textile
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-04-30 09:00:48 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-04-30 09:00:48 -0700
commitc435feb4044f6c62bb188c459c3be5d81cc77b07 (patch)
tree69c0e857df00ef01cd2d68793bc0885be688ca62 /guides/source/command_line.textile
parent7d5146efad1c3bd471f315e4d259e00052eacbb6 (diff)
parent324201d7b9f1cd8a79baea64cdbf0df2be60decd (diff)
downloadrails-c435feb4044f6c62bb188c459c3be5d81cc77b07.tar.gz
rails-c435feb4044f6c62bb188c459c3be5d81cc77b07.tar.bz2
rails-c435feb4044f6c62bb188c459c3be5d81cc77b07.zip
Merge pull request #5175 from jasonnoble/rake_notes_directories
Custom directories for rake notes
Diffstat (limited to 'guides/source/command_line.textile')
-rw-r--r--guides/source/command_line.textile13
1 files changed, 13 insertions, 0 deletions
diff --git a/guides/source/command_line.textile b/guides/source/command_line.textile
index 858ce47db1..95a01710b5 100644
--- a/guides/source/command_line.textile
+++ b/guides/source/command_line.textile
@@ -446,6 +446,19 @@ app/model/post.rb:
NOTE. When using specific annotations and custom annotations, the annotation name (FIXME, BUG etc) is not displayed in the output lines.
+Be default, rake notes will look in the app, config, lib, script and test directories for notes. If you would like to search additional directories,
+simply provide the directories as a comma seperated list in an environment variable +SOURCE_ANNOTATION_DIRECTORIES+.
+
+<shell>
+$ export SOURCE_ANNOTATION_DIRECTORIES='rspec,vendor'
+$ rake notes
+(in /home/foobar/commandsapp)
+app/model/user.rb:
+ * [ 35] [FIXME] User should have a subscription at this point
+rspec/model/user_spec.rb:
+ * [122] [TODO] Verify the user that has a subscription works
+</shell>
+
h4. +routes+
+rake routes+ will list all of your defined routes, which is useful for tracking down routing problems in your app, or giving you a good overview of the URLs in an app you're trying to get familiar with.