refactor(backend): rename teardown_consolidated -> deprovision_consolidated

The backends' public teardown entry point now pairs with `launch_consolidated`
under the provision/deprovision verb used everywhere else
(`deprovision_bottle`, `deprovision_git_gate`). Renamed across all three
backends' consolidated_launch + launch modules and the tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-25 14:07:57 -04:00
parent a98f559bbe
commit 96ab8e15a2
10 changed files with 18 additions and 18 deletions
@@ -184,7 +184,7 @@ def register_agent(
)
def teardown_consolidated(
def deprovision_consolidated(
bottle_id: str, *, orchestrator_url: str, timeout: float | None = None,
) -> None:
"""Deregister the bottle and remove its git-gate state from the gateway.
@@ -200,7 +200,7 @@ __all__ = [
"ensure_gateway",
"live_source_ips",
"register_agent",
"teardown_consolidated",
"deprovision_consolidated",
"ConsolidatedLaunchError",
"OrchestratorStartError",
"GATEWAY_NETWORK",
+2 -2
View File
@@ -68,7 +68,7 @@ from .consolidated_launch import (
GatewayEndpoint,
ensure_gateway,
register_agent,
teardown_consolidated,
deprovision_consolidated,
)
_REPO_DIR = str(Path(__file__).resolve().parent.parent.parent.parent)
@@ -202,7 +202,7 @@ def launch(
env_var_secret=plan.env_var_secret,
)
stack.callback(
teardown_consolidated, ctx.bottle_id,
deprovision_consolidated, ctx.bottle_id,
orchestrator_url=ctx.orchestrator_url,
timeout=teardown_timeout,
)