diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-28 15:52:17 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-28 15:52:17 +0100 |
commit | d167fc9b40a83187c657f3a048f19ac56f529af3 (patch) | |
tree | 2a8fb8e64e3348a9e60727b5fc9d8cc3ec14faa7 /module/ri-engine/src/test/java | |
parent | 0ae7ecd47fd76921e8e1137739497578fe703354 (diff) | |
download | rules-sandbox-d167fc9b40a83187c657f3a048f19ac56f529af3.tar.gz rules-sandbox-d167fc9b40a83187c657f3a048f19ac56f529af3.tar.bz2 rules-sandbox-d167fc9b40a83187c657f3a048f19ac56f529af3.tar.xz rules-sandbox-d167fc9b40a83187c657f3a048f19ac56f529af3.zip |
Better main().
* More than one input database.
* Only creating templating engine if the rules require it.
Diffstat (limited to 'module/ri-engine/src/test/java')
-rw-r--r-- | module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeAppsTestMain.java | 2 | ||||
-rw-r--r-- | module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeAppsTestMain.java b/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeAppsTestMain.java index 17b7950..37e8787 100644 --- a/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeAppsTestMain.java +++ b/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeAppsTestMain.java @@ -10,7 +10,7 @@ class AcmeAppsTestMain { public static void main(String[] args) throws Exception { var c = new RunCommand(); c.name = "acme-apps"; - c.input = new File("acme.yaml"); + c.input = new File[]{new File("acme.yaml")}; c.outputState = new File("out/acme/apps.yaml"); c.agendaGroups = new String[]{"init", "generate"}; c.generatedOutput = new File("acme-apps"); diff --git a/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java b/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java index 2bb5513..4d88e39 100644 --- a/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java +++ b/module/ri-engine/src/test/java/io/trygvis/rules/engine/AcmeWireguardTestMain.java @@ -10,7 +10,7 @@ class AcmeWireguardTestMain { public static void main(String[] args) throws Exception { var c = new RunCommand(); c.name = "acme-wireguard"; - c.input = new File("acme.yaml"); + c.input = new File[]{new File("acme.yaml")}; c.outputState = new File("out/acme/wireguard.yaml"); c.agendaGroups = new String[]{"init", "generate"}; c.generatedOutput = new File("acme-wireguard"); |