File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff 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
198198you 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
231202Parameters are only given to tasks that are setup to expect them. In
You can’t perform that action at this time.
0 commit comments