fixup! [REF] add ensure_file_exists_from_template function

This commit is contained in:
Sylvain LE GAL 2022-03-28 13:45:47 +02:00
parent 5f14b50a31
commit f78f0677ae
2 changed files with 4 additions and 5 deletions

View File

@ -68,6 +68,7 @@ def main(ctx, env_folder, filestore_folder):
date_begin.strftime("%Y_%m_%d__%H_%M_%S"), ctx.invoked_subcommand
)
)
logger.add(log_file_path)
# Add all global values in the context

View File

@ -1,8 +1,8 @@
# from pathlib import Path
import click
from loguru import logger
from plumbum.cmd import mkdir
from odoo_openupgrade_wizard.tools_system import ensure_folder_exists
@click.command()
@ -18,9 +18,7 @@ def build(ctx):
for step in ctx.obj["config"]["migration_steps"]:
# 1. Create main folder for the odoo version
if not step["local_path"].exists():
logger.info("Creating folder '%s' ..." % (step["local_path"]))
mkdir(["--mode", "777", step["local_path"]])
ensure_folder_exists(step["local_path"], mode="777")
# # 2. gitaggregate source code
# repo_file = ctx.obj["repo_folder_path"] / Path(