From 57cdf0fafb85c9f4efbcd871e094686fdc2ca753 Mon Sep 17 00:00:00 2001 From: Pedro Chambino Date: Fri, 11 Dec 2015 14:05:21 +0000 Subject: [PATCH] Remove doc section: Task Arguments and the Environment Support for this was removed on commit: 5148aac8b61246432d6d87f19f26e401ace62853 --- doc/rakefile.rdoc | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/doc/rakefile.rdoc b/doc/rakefile.rdoc index fd652c741..d18680e51 100644 --- a/doc/rakefile.rdoc +++ b/doc/rakefile.rdoc @@ -197,35 +197,6 @@ argument string should be quoted. Something like this: (Quoting rules vary between operating systems and shells, so make sure you consult the proper docs for your OS/shell). -=== Task Arguments and the Environment - -Task argument values can also be picked up from the environment. For -example, if the "release" task expected a parameter named -"release_version", then either - - rake release[0.8.2] - -or - - RELEASE_VERSION=0.8.2 rake release - -or, alternatively - - rake release RELEASE_VERSION=0.8.2 - -will work. Environment variable names must either match the task -parameter exactly, or match an all-uppercase version of the task -parameter. - -*NOTE:* A variable declared within a rake command will -not persist in the environment: - - $ export VALUE=old - $ rake print_value VALUE=new - new - $ rake print_value - old - === Tasks that Expect Parameters Parameters are only given to tasks that are setup to expect them. In