Files
bot-bottle/claude_bottle/bottles/docker/__init__.py
T
didericis d28f0e6d9b
test / run tests/run_tests.py (pull_request) Successful in 14s
refactor(docker): split bottles/docker/__init__.py into sibling modules
The single docker/__init__.py grew to ~555 lines holding the platform,
its plan classes, the bottle handle, and the runsc probe. Split into:

  - util.py                : Docker subprocess primitives + runsc_available
  - bottle_plan.py         : DockerBottlePlan (+ its print method)
  - bottle_cleanup_plan.py : DockerBottleCleanupPlan
  - bottle.py              : _DockerBottle handle class
  - platform.py            : DockerBottlePlatform (the bulk)

docker/__init__.py becomes a thin re-export shim so existing imports
(claude_bottle.bottles.docker.DockerBottlePlatform, etc.) keep working.
2026-05-10 23:29:38 -04:00

27 lines
740 B
Python

"""Docker bottle platform.
The bulk of the implementation lives in sibling modules:
- util: thin Docker subprocess wrappers
- bottle_plan: DockerBottlePlan
- bottle_cleanup_plan: DockerBottleCleanupPlan
- bottle: _DockerBottle handle
- platform: DockerBottlePlatform
This file only re-exports the platform class so
`from claude_bottle.bottles.docker import DockerBottlePlatform` keeps
working.
"""
from __future__ import annotations
from .bottle_cleanup_plan import DockerBottleCleanupPlan
from .bottle_plan import DockerBottlePlan
from .platform import DockerBottlePlatform
__all__ = [
"DockerBottleCleanupPlan",
"DockerBottlePlan",
"DockerBottlePlatform",
]