Beispiel #1
0
    def modify_raw_config(self, raw_config: dict) -> dict:
        project_root_filesystem_path = os.getcwd()
        project_root_repo_path = "<not_databricks_repo>"

        if is_databricks_repo() and project_root_filesystem_path.startswith(
                "/Workspace/Repos"):
            project_root_repo_path = project_root_filesystem_path.replace(
                "/Workspace/Repos", "/Repos")

        project_root_paths = {
            "parameters": {
                "databricksbundle": {
                    "project_root": {
                        "filesystem": {
                            "path": project_root_filesystem_path,
                        },
                        "repo": {
                            "path": project_root_repo_path,
                        },
                    },
                }
            }
        }

        return ConfigMerger().merge(raw_config, project_root_paths)
Beispiel #2
0
 def __init__(self, bundles: List[Bundle], config_path: str, project_bundles_config_dir: str, app_env: str):
     self.__config_merger = ConfigMerger()
     self.__bundle_manager = BundleManager(bundles)
     self.__config_path = config_path
     self.__project_bundles_config_dir = project_bundles_config_dir
     self.__app_env = app_env
 def __init__(self):
     self.__configLoader = ConfigLoader()
     self.__configMerger = ConfigMerger()
 def __init__(self):
     self.__placeholderFiller = PlaceholderFiller()
     self.__configMerger = ConfigMerger()
Beispiel #5
0
 def __init__(self, bundles: List[Bundle]):
     self.__bundles = bundles
     self.__config_loader = ConfigLoader()
     self.__config_merger = ConfigMerger()
Beispiel #6
0
 def setUp(self):
     self.__configMerger = ConfigMerger()