adding local_stack option for repository setup
This commit is contained in:
parent
a8d0494324
commit
273a5c9f1d
@ -68,7 +68,13 @@ def command(ctx, check_only, pull, branches_file):
|
|||||||
if verbose:
|
if verbose:
|
||||||
print(f"Branches are: {branches}")
|
print(f"Branches are: {branches}")
|
||||||
|
|
||||||
dev_root_path = os.path.expanduser(config("DEV_ROOT", default="~/cerc"))
|
local_stack = ctx.obj.local_stack
|
||||||
|
|
||||||
|
if local_stack:
|
||||||
|
dev_root_path = default=os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")])
|
||||||
|
print(f'Local stack dev_root_path (CERC_REPO_BASE_DIR) overridden to: {dev_root_path}')
|
||||||
|
else:
|
||||||
|
dev_root_path = os.path.expanduser(config("CERC_REPO_BASE_DIR", default="~/cerc"))
|
||||||
|
|
||||||
if not quiet:
|
if not quiet:
|
||||||
print(f'Dev Root is: {dev_root_path}')
|
print(f'Dev Root is: {dev_root_path}')
|
||||||
|
Loading…
Reference in New Issue
Block a user