From 3c1f1e74cb2f908d372fd425b81c81ec58ee0f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 24 Jan 2022 18:07:19 +0100 Subject: [PATCH] WIP: Services.copy_configs --- kiwi_scp/commands/cmd_update.py | 3 +++ kiwi_scp/services.py | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/kiwi_scp/commands/cmd_update.py b/kiwi_scp/commands/cmd_update.py index 6b18fe0..0d0e0af 100644 --- a/kiwi_scp/commands/cmd_update.py +++ b/kiwi_scp/commands/cmd_update.py @@ -53,6 +53,9 @@ class UpdateCommand(KiwiCommand): ): return + # services.copy_configs() + # return + ctx = get_current_context() assert isinstance(BuildCommand, click.Command) ctx.forward(BuildCommand) diff --git a/kiwi_scp/services.py b/kiwi_scp/services.py index 94c6771..0d6759b 100644 --- a/kiwi_scp/services.py +++ b/kiwi_scp/services.py @@ -21,6 +21,17 @@ class Services: def __bool__(self) -> bool: return bool(self.content) + # def copy_configs(self): + # configs = ( + # config + # for service in self.content + # for config in service.configs + # ) + # + # print(list(configs)) + # + # # Rootkit("rsync"). + @property def names(self) -> Generator[str, None, None]: return (