You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/_data/werf_giterminism_yaml.yml
+2-2
Original file line number
Diff line number
Diff line change
@@ -45,8 +45,8 @@ directives:
45
45
- name: allowUncommittedFiles
46
46
value: "[ glob, ... ]"
47
47
description:
48
-
en: Read the certain configuration files from the project directory despite the state in git repository and .gitignore rules (using .Files.Getand .Files.Glob functions)
49
-
ru: Читать определённые конфигурационные файлы из директории проекта, не сверяя контент с файлами текущего коммита и игнорируя исключения в .gitignore (используя функции .Files.Getи .Files.Glob)
48
+
en: Read the certain configuration files from the project directory despite the state in git repository and .gitignore rules (using .Files.Exists, .Files.Get, .Files.Glob, and .Files.IsDir functions)
49
+
ru: Читать определённые конфигурационные файлы из директории проекта, не сверяя контент с файлами текущего коммита и игнорируя исключения в .gitignore (используя функции .Files.Exists, .Files.Get, .Files.Glob и .Files.IsDir)
Copy file name to clipboardexpand all lines: docs/pages_en/reference/werf_yaml_template_engine.md
+26
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,19 @@ __Syntax__:
223
223
224
224
### project files
225
225
226
+
#### .Files.Exists
227
+
228
+
The function `.Files.Exists` checks existence of a file (regular/directory) in project and returns the result `true` or `false`.
229
+
230
+
__Syntax__:
231
+
{% raw %}
232
+
```yaml
233
+
{{ .Files.Exists "<FILE_PATH>" }}
234
+
```
235
+
{% endraw %}
236
+
237
+
> By default, the use of files that have non-committed changes is not allowed by giterminism (read more about it [here]({{ "usage/project_configuration/giterminism.html" | true_relative_url }}))
238
+
226
239
#### .Files.Get
227
240
228
241
The function `.Files.Get` gets a certain project file content.
@@ -336,6 +349,19 @@ ansible:
336
349
```
337
350
{% endraw %}
338
351
352
+
#### .Files.IsDir
353
+
354
+
The function `.Files.IsDir` checks path is a directory and returns `true` or `false`.
355
+
356
+
__Syntax__:
357
+
{% raw %}
358
+
```yaml
359
+
{{ .Files.IsDir "<PATH>" }}
360
+
```
361
+
{% endraw %}
362
+
363
+
> By default, the use of files that have non-committed changes is not allowed by giterminism (read more about it [here]({{ "usage/project_configuration/giterminism.html" | true_relative_url }}))
Copy file name to clipboardexpand all lines: docs/pages_ru/reference/werf_yaml_template_engine.md
+26
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,19 @@ __Синтаксис__:
223
223
224
224
### Файлы проекта
225
225
226
+
#### .Files.Exists
227
+
228
+
Функция `.Files.Exists` проверят наличие файла/директории в рамках проекта и возвращает результат `true` или `false`.
229
+
230
+
__Синтаксис__:
231
+
{% raw %}
232
+
```yaml
233
+
{{ .Files.Exists "<FILE_PATH>" }}
234
+
```
235
+
{% endraw %}
236
+
237
+
> По умолчанию, использование файлов, которые имеют незакоммиченные изменения, запрещено гитерминизмом (подробнее об этом в [статье]({{ "usage/project_configuration/giterminism.html" | true_relative_url }}))
238
+
226
239
#### .Files.Get
227
240
228
241
Функция `.Files.Get` получает содержимое определенного файла проекта.
@@ -336,6 +349,19 @@ ansible:
336
349
```
337
350
{% endraw %}
338
351
352
+
#### .Files.IsDir
353
+
354
+
Функция `.Files.IsDir` проверят, является ли путь директорией и возвращает результат `true` или `false`.
355
+
356
+
__Синтаксис__:
357
+
{% raw %}
358
+
```yaml
359
+
{{ .Files.IsDir "<PATH>" }}
360
+
```
361
+
{% endraw %}
362
+
363
+
> По умолчанию, использование файлов, которые имеют незакоммиченные изменения, запрещено гитерминизмом (подробнее об этом в [статье]({{ "usage/project_configuration/giterminism.html" | true_relative_url }}))
0 commit comments