Exemplo n.º 1
0
def create_application():
    body = request.body.readline()
    info = json.loads(body)
    version = info['version']
    tag = info['tag']
    if not version in git_client.get_versions(rootdir):
        abort(400, 'Version {version} does not exist'.format(version=version))
    return json.dumps(create_instance(version, tag))
Exemplo n.º 2
0
def get_versions():
    return json.dumps(git_client.get_versions(rootdir))