mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:34:31 +00:00
- 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>
32 lines
614 B
Python
32 lines
614 B
Python
from __future__ import annotations
|
|
|
|
from ..context import KnoeContext
|
|
from ..legacy_shell import run_script
|
|
|
|
|
|
_SCRIPT = "init_common_core.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")
|