mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-06 08:10:48 +00:00
Seven cloud providers had nearly identical instance status polling loops (20-36 lines each). Extract the shared pattern into generic_wait_for_instance() in shared/common.sh and replace the duplicated loops with one-liner calls. Clouds refactored: Civo, Contabo, DigitalOcean, GenesisCloud, Linode, UpCloud, Vultr Net reduction: ~99 lines (-185/+86) Agent: complexity-hunter Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||