You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@liminal.apache.org by av...@apache.org on 2021/06/15 14:07:33 UTC
[incubator-liminal] branch master updated: [LIMINAL-64] support
multiple liminal yaml files
This is an automated email from the ASF dual-hosted git repository.
aviemzur pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-liminal.git
The following commit(s) were added to refs/heads/master by this push:
new 6e951cb [LIMINAL-64] support multiple liminal yaml files
6e951cb is described below
commit 6e951cb0424ef5752eaf25c31870f98d37af01dc
Author: Lidor Ettinger <li...@gmail.com>
AuthorDate: Tue Jun 15 17:07:09 2021 +0300
[LIMINAL-64] support multiple liminal yaml files
---
scripts/liminal | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/liminal b/scripts/liminal
index 7c694da..3949744 100755
--- a/scripts/liminal
+++ b/scripts/liminal
@@ -128,8 +128,9 @@ def deploy_liminal_apps(path, clean):
config_files = files_util.find_config_files(path)
for config_file in config_files:
click.echo(f"deploying liminal file: {config_file}")
- yml_name = os.path.basename(config_file)
- target_yml_name = os.path.join(environment.get_dags_dir(), yml_name)
+ relative_path = os.path.relpath(config_file)
+ target_yml_name = os.path.join(environment.get_dags_dir(), relative_path)
+ pathlib.Path(target_yml_name).parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(config_file, target_yml_name)
def liminal_is_running():