示例#1
0
def run(args):
    server = load_server(args.profiles, args.conffile)
    if args.version:
        result = get_app_version(server, args.app, args.version)
    else:
        result = list_app_versions(server, args.app)
    print_json(result)
示例#2
0
文件: list.py 项目: adcade/philip
def run(args):
    server = load_server(args.profiles, args.conffile)
    if args.app:
        result = list_app_tasks(server, args.app)
    else:
        result = list_tasks(server, args.status)
    print_json(result)
示例#3
0
文件: kill.py 项目: adcade/philip
def run(args):
    server = load_server(args.profiles, args.conffile)
    if args.task:
        result = kill_app_task(server, args.app, args.task, args.scale)
    else:
        result = kill_app_all_tasks(server, args.app, host=args.hostm, scale=args.scale)

    print_json(result)
示例#4
0
def run(args):
    server = load_server(args.profiles, args.conffile)
    stream_events(server)
示例#5
0
文件: get.py 项目: leonmax/philip
def run(args):
    server = load_server(args.profiles, args.conffile)
    result = get_group(server, args.group)
    print_json(result)
示例#6
0
文件: list.py 项目: greencase/philip
def run(args):
    server = load_server(args.profiles, args.conffile)
    result = list_groups(server)
    print_json(result)
示例#7
0
def run(args):
    server = load_server(args.profiles, args.conffile)
    result = restart_app(server, args.app, args.force)
    print_json(result)
示例#8
0
def run(args):
    server = load_server(args.profiles, args.conffile)
    result = delete_deployment(server, args.deployment)
    print_json(result)
示例#9
0
文件: update.py 项目: adcade/philip
def run(args):
    server = load_server(args.profiles, args.conffile)
    artifact = load_artifact(args.profiles, args.message, args.tag)
    result = update_app(server, artifact, args.dry_run, args.force)
    print_json(result)
示例#10
0
文件: create.py 项目: adcade/philip
def run(args):
    server = load_server(args.profiles, args.conffile)
    artifact = load_artifact(args.profiles, args.message)
    result = create_group(server, artifact, args.dry_run)
    print_json(result)
示例#11
0
def run(args):
    server = load_server(args.profiles, args.conffile)
    result = delete_app(server, args.app)
    print_json(result)
示例#12
0
文件: list.py 项目: adcade/philip
def run(args):
    server = load_server(args.profiles, args.conffile)
    result = list_deployments(server)
    print_json(result)
示例#13
0
文件: leader.py 项目: leonmax/philip
def run(args):
    server = load_server(args.profiles, args.conffile)
    result = leader(server)

    print_json(result)