Skip to content

Commit 31afc0d

Browse files
committed
Merge pull request #89 from PChambino/remove-doc-args-env
Remove doc section: Task Arguments and the Environment
2 parents d731a0f + 57cdf0f commit 31afc0d

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

doc/rakefile.rdoc

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -197,35 +197,6 @@ argument string should be quoted. Something like this:
197197
(Quoting rules vary between operating systems and shells, so make sure
198198
you consult the proper docs for your OS/shell).
199199

200-
=== Task Arguments and the Environment
201-
202-
Task argument values can also be picked up from the environment. For
203-
example, if the "release" task expected a parameter named
204-
"release_version", then either
205-
206-
rake release[0.8.2]
207-
208-
or
209-
210-
RELEASE_VERSION=0.8.2 rake release
211-
212-
or, alternatively
213-
214-
rake release RELEASE_VERSION=0.8.2
215-
216-
will work. Environment variable names must either match the task
217-
parameter exactly, or match an all-uppercase version of the task
218-
parameter.
219-
220-
*NOTE:* A variable declared within a rake command will
221-
not persist in the environment:
222-
223-
$ export VALUE=old
224-
$ rake print_value VALUE=new
225-
new
226-
$ rake print_value
227-
old
228-
229200
=== Tasks that Expect Parameters
230201

231202
Parameters are only given to tasks that are setup to expect them. In

0 commit comments

Comments
 (0)