From 519f403f8d69e4d48a0edc82c5ef7d4cde7a6d62 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Fri, 29 Sep 2023 17:45:24 +0100 Subject: [PATCH] update bl45p-ea-ioc-01 to latest framework --- src/ibek/ioc_cmds/assets.py | 6 +----- src/ibek/ioc_cmds/commands.py | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/ibek/ioc_cmds/assets.py b/src/ibek/ioc_cmds/assets.py index 06dcd9a3d..4fd75189b 100644 --- a/src/ibek/ioc_cmds/assets.py +++ b/src/ibek/ioc_cmds/assets.py @@ -33,11 +33,7 @@ def move_file(src: Path, dest: Path, binary: List[str]): def extract_assets(destination: Path, source: Path, extras: List[Path], defaults: bool): """ - Find all the runtime assets in an EPICS installation and copy them to a - new folder hierarchy for packaging into a container runtime stage. - - This should be performed in a throw away container stage (runtime_prep) - as it is destructive of the source folder, because it uses move for speed. + extract and copy runtime assets """ asset_matches = "bin|configure|db|dbd|include|lib|template|config|*.sh" diff --git a/src/ibek/ioc_cmds/commands.py b/src/ibek/ioc_cmds/commands.py index d46240724..7ccfa4ce4 100644 --- a/src/ibek/ioc_cmds/commands.py +++ b/src/ibek/ioc_cmds/commands.py @@ -118,6 +118,13 @@ def extract_runtime_assets( extras: List[Path] = typer.Option(None, help="list of files to also extract"), defaults: bool = typer.Option(True, help="copy the default assets"), ): + """ + Find all the runtime assets in an EPICS installation and copy them to a + new folder hierarchy for packaging into a container runtime stage. + + This should be performed in a throw away container stage (runtime_prep) + as it is destructive of the source folder, because it uses move for speed. + """ extract_assets(destination, source, extras, defaults)