|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import deprecation
|
|
|
|
|
import logging
|
|
|
|
|
from typing import List
|
|
|
|
|
|
|
|
|
|
def filter_none(list_to_filter):
|
|
|
|
@ -35,11 +36,12 @@ class DnsRecord(Validateable):
|
|
|
|
|
|
|
|
|
|
class Devops(Validateable):
|
|
|
|
|
def __init__(
|
|
|
|
|
self, stage, project_root_path, module, name=None, build_dir_name="target"
|
|
|
|
|
self, stage: str, project_root_path: str, module: str, name: str | None =None, build_dir_name: str="target"
|
|
|
|
|
):
|
|
|
|
|
self.stage = stage
|
|
|
|
|
self.name = name
|
|
|
|
|
self.project_root_path = project_root_path
|
|
|
|
|
logging.warn(f"Set project root in DevOps {self.project_root_path}")
|
|
|
|
|
self.module = module
|
|
|
|
|
if not name:
|
|
|
|
|
self.name = module
|
|
|
|
@ -54,6 +56,7 @@ class Devops(Validateable):
|
|
|
|
|
|
|
|
|
|
def build_path(self):
|
|
|
|
|
path = [self.project_root_path, self.build_dir_name, self.name, self.module]
|
|
|
|
|
logging.warn(f"Set project build_path in Devops {path}")
|
|
|
|
|
return "/".join(filter_none(path))
|
|
|
|
|
|
|
|
|
|
def __put__(self, key, value):
|
|
|
|
|