コード例 #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
コード例 #2
0
ファイル: status.py プロジェクト: ashwinaj/paasta
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
コード例 #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
コード例 #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
コード例 #5
0
ファイル: status.py プロジェクト: harshanarayana/paasta
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
コード例 #6
0
def get_deploy_info(service, soa_dir):
    file_path = os.path.join(soa_dir, service, 'deploy.yaml')
    return read_deploy(file_path)
コード例 #7
0
ファイル: status.py プロジェクト: RedCobbler/paasta
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