def get_deploy_info(deploy_file_path: str, ) -> Mapping: deploy_info = read_deploy(deploy_file_path) if not deploy_info: paasta_print('Error encountered with %s' % deploy_file_path) exit(1) return deploy_info
def get_deploy_info(service): deploy_file_path = join(DEFAULT_SOA_DIR, service, "deploy.yaml") deploy_info = read_deploy(deploy_file_path) if not deploy_info: print PaastaCheckMessages.DEPLOY_YAML_MISSING exit(1) return deploy_info
def test_read_deploy_should_return_empty_when_file_doesnt_exist(self): expected = {} fake_deploy_file = 'fake_deploy_file' # TODO: Mock open? actual = service_configuration_lib.read_deploy( fake_deploy_file, ) assert expected == actual
def get_deploy_info(deploy_file_path): deploy_info = read_deploy(deploy_file_path) if not deploy_info: print PaastaCheckMessages.DEPLOY_YAML_MISSING exit(1) return deploy_info
def get_deploy_info(service, soa_dir): file_path = os.path.join(soa_dir, service, 'deploy.yaml') return read_deploy(file_path)