mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 09:10:55 +00:00
- Extract duplicated _ensure_jq from hetzner and hostkey into shared ensure_jq in shared/common.sh (removes ~60 lines of duplication) - Replace CloudSigma hand-rolled ensure_cloudsigma_credentials with ensure_multi_credentials (removes ~20 lines of inline Python) - Replace _wait_for_cloudsigma_server (63 lines) with generic_wait_for_instance + _resolve_cloudsigma_ip helper - Extract _find_ubuntu_image_uuid and _clone_drive from create_cloudsigma_drive (60 -> 23 lines) - Extract _get_ssh_key_uuid from create_server inline Python - Replace hand-rolled SSH functions with shared SSH helpers (SSH_USER=cloudsigma) Net reduction: ~158 lines across 4 files. Agent: complexity-hunter -- refactor/complexity-hunter Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||
| github-auth.sh | ||
| key-request.sh | ||