-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for reading variables from environment variables #409…
… and also to override the definition of a variable in a config file #410
- Loading branch information
Cédric L. Charlier
committed
Nov 1, 2018
1 parent
bd7b7f0
commit 2502d44
Showing
4 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,6 +109,7 @@ | |
- title: Global variables | ||
docs: | ||
- variable-define | ||
- variable-override | ||
|
||
- title: Metadata | ||
docs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
layout: documentation | ||
title: Override variables | ||
prev_section: variable-define | ||
next_section: metadata-concept | ||
permalink: /docs/variable-override/ | ||
--- | ||
Version 1.19 introduces the notion of *override* in a *variable*. This option offers the opportunity to enforce the value of a *variable* using a config file. | ||
|
||
# Config file | ||
|
||
To enforce the value of one or more variables, you must enlist them in the *variables* element of the config file. The attribute *name* specifies the name of the overriden variable, the attribute *value* specifies the value to apply to this variable and finally the attribute *type* sepcifies the type of the variable (could be *text*, *numeric*, *dateTime* or *boolean*). | ||
|
||
{% highlight xml %} | ||
<nbi ...> | ||
<variables> | ||
<add name="myDate" value="2013-12-01" type="DateTime"/> | ||
<add name="myNum" value="187" type="Numeric"/> | ||
</variables> | ||
</nbi> | ||
{% endhighlight %} |