This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 39
apply_values
Marcel Kloubert edited this page Dec 28, 2017
·
2 revisions
Home >> Settings >> Apply values
String templates with placeholders can be applied to properties of objects, like packages or targets.
{
"deploy.reloaded": {
"values": {
"sub_directory": "name_of_subdirectory"
},
"targets": [
{
"name": "My local target",
"type": "local",
"applyValuesTo": {
"dir": "/path/to/output/${sub_directory}"
}
}
]
}
}
What happens is, that the value of dir
property in applyValuesTo
object will be handled as template, because it is a string.
The result value (/path/to/output/sub_directory
) will be written to dir
property of the underlying target (My local target
).
These templates are always up-to-date, what means, that always the current values of the including placeholders will be used.