コード例 #1
0
ファイル: main.py プロジェクト: jessemoeller/commcare-cloud
    def raw_app_processes_config(self):
        """
        collated contents of app-processes.yml files, as an AppProcessesConfig object

        includes environmental-defaults/app-processes.yml as well as <env>/app-processes.yml
        """
        with open(self.paths.app_processes_yml_default) as f:
            app_processes_json = yaml.safe_load(f)
        with open(self.paths.app_processes_yml) as f:
            app_processes_json.update(yaml.safe_load(f))

        raw_app_processes_config = AppProcessesConfig.wrap(app_processes_json)
        raw_app_processes_config.check()
        return raw_app_processes_config
コード例 #2
0
ファイル: main.py プロジェクト: dirkdejager/commcare-cloud
    def _raw_app_processes_config(self):
        """
        collated contents of app-processes.yml files, as an AppProcessesConfig object

        includes environmental-defaults/app-processes.yml as well as <env>/app-processes.yml
        """
        with open(self.paths.app_processes_yml_default, encoding='utf-8') as f:
            app_processes_json = from_yaml(f)
        with open(self.paths.app_processes_yml, encoding='utf-8') as f:
            app_processes_json.update(from_yaml(f))

        raw_app_processes_config = AppProcessesConfig.wrap(app_processes_json)
        raw_app_processes_config.check()
        return raw_app_processes_config
コード例 #3
0
ファイル: main.py プロジェクト: dimagi/commcarehq-ansible
    def raw_app_processes_config(self):
        """
        collated contents of app-processes.yml files, as an AppProcessesConfig object

        includes environmental-defaults/app-processes.yml as well as <env>/app-processes.yml
        """
        with open(self.paths.app_processes_yml_default) as f:
            app_processes_json = yaml.safe_load(f)
        with open(self.paths.app_processes_yml) as f:
            app_processes_json.update(yaml.safe_load(f))

        raw_app_processes_config = AppProcessesConfig.wrap(app_processes_json)
        raw_app_processes_config.check()
        return raw_app_processes_config
コード例 #4
0
ファイル: main.py プロジェクト: jessemoeller/commcare-cloud
 def app_processes_config(self):
     app_processes_config = AppProcessesConfig.wrap(self.raw_app_processes_config.to_json())
     app_processes_config.check_and_translate_hosts(self)
     app_processes_config.check()
     return app_processes_config
コード例 #5
0
ファイル: main.py プロジェクト: dimagi/commcarehq-ansible
 def app_processes_config(self):
     app_processes_config = AppProcessesConfig.wrap(self.raw_app_processes_config.to_json())
     app_processes_config.check_and_translate_hosts(self)
     app_processes_config.check()
     return app_processes_config