Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor tweeks to rakefile document changes.

  • Loading branch information...
commit 365df37b5673b264995ee0c25713528935aaf411 1 parent 605c397
@jimweirich authored
Showing with 14 additions and 9 deletions.
  1. +14 −9 doc/rakefile.rdoc
View
23 doc/rakefile.rdoc
@@ -195,7 +195,7 @@ or
RELEASE_VERSION=0.8.2 rake release
-or, alternatively
+or, alternatively
rake release RELEASE_VERSION=0.8.2
@@ -206,10 +206,10 @@ parameter.
<b>NOTE:</b> A variable declared within a rake command will
not persist in the environment:
- $ export $VALUE=old
+ $ export VALUE=old
$ rake print_value VALUE=new
new
- $ rake print_value
+ $ rake print_value
old
=== Tasks that Expect Parameters
@@ -565,11 +565,11 @@ This is the proper way to specify the task ...
== Rakefile Path
-When issuing the <tt>rake</tt> command in a terminal, Rake will look
-for a Rakefile in the current directory. If a Rakefile is not found,
+When issuing the <tt>rake</tt> command in a terminal, Rake will look
+for a Rakefile in the current directory. If a Rakefile is not found,
it will search parent directories until one is found.
-For example, if a Rakefile resides in the <tt>project/</tt> directory,
+For example, if a Rakefile resides in the <tt>project/</tt> directory,
moving deeper into the project's directory tree will not have an adverse
effect on rake tasks:
@@ -583,13 +583,18 @@ effect on rake tasks:
$ rake run_pwd
/home/user/project
-As far as rake is concerned, all tasks are run from the directory in
+As far as rake is concerned, all tasks are run from the directory in
which the Rakefile resides.
=== Multiple Rake Files
-Not all tasks need to be included in a single Rakefile. A <tt>rakelib</tt>
-directory may be created for including additional Rake files.
+Not all tasks need to be included in a single Rakefile. Additional
+rake files (with the file extension "<tt>.rake</tt>") may be placed in
+<tt>rakelib</tt> directory located at the top level of a project (i.e.
+the same directory that contains the main <tt>Rakefile</tt>).
+
+Also, rails projects may include additional rake files in the
+<tt>lib/tasks</tt> directory.
----
Please sign in to comment.
Something went wrong with that request. Please try again.