Exemplo n.º 1
0
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
Exemplo n.º 2
0
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
Exemplo n.º 3
0
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
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
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
Exemplo n.º 6
0
def get_deploy_info(service, soa_dir):
    file_path = os.path.join(soa_dir, service, 'deploy.yaml')
    return read_deploy(file_path)
Exemplo n.º 7
0
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