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)
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)
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)
def run(args): server = load_server(args.profiles, args.conffile) stream_events(server)
def run(args): server = load_server(args.profiles, args.conffile) result = get_group(server, args.group) print_json(result)
def run(args): server = load_server(args.profiles, args.conffile) result = list_groups(server) print_json(result)
def run(args): server = load_server(args.profiles, args.conffile) result = restart_app(server, args.app, args.force) print_json(result)
def run(args): server = load_server(args.profiles, args.conffile) result = delete_deployment(server, args.deployment) print_json(result)
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)
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)
def run(args): server = load_server(args.profiles, args.conffile) result = delete_app(server, args.app) print_json(result)
def run(args): server = load_server(args.profiles, args.conffile) result = list_deployments(server) print_json(result)
def run(args): server = load_server(args.profiles, args.conffile) result = leader(server) print_json(result)