prole/knoe/ops/components/registry.py
chrisfu 4ee2b259c9 Checkpoint: rename installer to knoe + harden db build context
- Add build-context helper to copy Docker context safely (ignore runtime data, keep symlinks)

- Update UI and core actions to use ~/.prole/build and shared copy helper

- Add/adjust tests and scripts; introduce knoe ops helpers and update manifests

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-22 01:45:21 -07:00

32 lines
611 B
Python

from __future__ import annotations
from ..context import KnoeContext
from ..legacy_shell import run_script
_SCRIPT = "init_registry.sh"
def initialize(ctx: KnoeContext):
return run_script(ctx, _SCRIPT, "initialize")
def start(ctx: KnoeContext):
return run_script(ctx, _SCRIPT, "start")
def update(ctx: KnoeContext):
return run_script(ctx, _SCRIPT, "update")
def restart(ctx: KnoeContext):
return run_script(ctx, _SCRIPT, "restart")
def stop(ctx: KnoeContext):
return run_script(ctx, _SCRIPT, "stop")
def status(ctx: KnoeContext):
return run_script(ctx, _SCRIPT, "status")