mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-06-01 14:30:27 +00:00
Created generic_ssh_wait() in shared/common.sh to eliminate ~100 lines of duplicated waiting logic across all cloud providers. Changes: - Added generic_ssh_wait(ip, ssh_opts, test_cmd, description, max_attempts, interval) to shared/common.sh - Refactored verify_server_connectivity() in all clouds to use generic_ssh_wait - Refactored wait_for_cloud_init() in all clouds to use generic_ssh_wait Benefits: - Single source of truth for SSH polling logic - Consistent error messages across providers - Reduced code duplication (~20 lines per provider → 2 lines) - Easier to maintain and test All tests pass (42/42). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||