This commit is contained in:
1 parent
edd61681dd
commit
f15dfd2b36
1 file changed
+15
-4
@@ -25,7 +25,18 @@ jobs:
|
|||||||
-H "x-api-secret: ${KOMODO_API_SECRET}" \
|
-H "x-api-secret: ${KOMODO_API_SECRET}" \
|
||||||
-d "$2"
|
-d "$2"
|
||||||
}
|
}
|
||||||
echo "=== ListServers ==="
|
echo "=== GetRepo 6ac99726aff03b84cf6d39d7 ==="
|
||||||
api /read/ListServers '{}' | python3 -m json.tool
|
api /read/GetRepo '{"repo":"6ac99726aff03b84cf6d39d7"}' | python3 -m json.tool
|
||||||
echo "=== GetStack qbit-maid ==="
|
echo "=== ListStacks (summary) ==="
|
||||||
api /read/GetStack '{"stack":"qbit-maid"}' | python3 -m json.tool
|
api /read/ListStacks '{}' | python3 -c '
|
||||||
|
import json,sys
|
||||||
|
for s in json.load(sys.stdin):
|
||||||
|
c = s.get("config", {})
|
||||||
|
print(s["name"], "| server:", c.get("server_id"), "| repo:", c.get("linked_repo"), "| branch:", c.get("branch"), "| rundir:", c.get("run_directory"), "| files_on_host:", c.get("files_on_host"), "| file_paths:", c.get("file_paths"))
|
||||||
|
'
|
||||||
|
echo "=== ListRepos ==="
|
||||||
|
api /read/ListRepos '{}' | python3 -c '
|
||||||
|
import json,sys
|
||||||
|
for r in json.load(sys.stdin):
|
||||||
|
print(r["id"], r["name"], r.get("info",{}).get("repo") or r.get("config",{}).get("repo"), r.get("config",{}).get("path"))
|
||||||
|
'
|
||||||
Reference in new issue
Block a user