From bf74332413951a3ebe3816ef22ecc91e4580282f Mon Sep 17 00:00:00 2001 From: jgstew Date: Tue, 26 Sep 2023 14:00:24 -0400 Subject: [PATCH] move dangerous processors --- .../DangerousCommandRunner.py | 0 .../DangerousEvaluate.py | 0 .../DangerousRunProcessors.py | 0 .../jgstew-SharedDangerousProcessors.recipe | 17 +++++++++++++++++ .../DangerousCommandRunner.test.recipe.yaml | 2 +- Test-Recipes/DangerousEvaluate.test.recipe.yaml | 2 +- .../DangerousRunProcessors.test.recipe.yaml | 2 +- 7 files changed, 20 insertions(+), 3 deletions(-) rename {SharedProcessors => SharedDangerousProcessors}/DangerousCommandRunner.py (100%) rename {SharedProcessors => SharedDangerousProcessors}/DangerousEvaluate.py (100%) rename {SharedProcessors => SharedDangerousProcessors}/DangerousRunProcessors.py (100%) create mode 100644 SharedDangerousProcessors/jgstew-SharedDangerousProcessors.recipe diff --git a/SharedProcessors/DangerousCommandRunner.py b/SharedDangerousProcessors/DangerousCommandRunner.py similarity index 100% rename from SharedProcessors/DangerousCommandRunner.py rename to SharedDangerousProcessors/DangerousCommandRunner.py diff --git a/SharedProcessors/DangerousEvaluate.py b/SharedDangerousProcessors/DangerousEvaluate.py similarity index 100% rename from SharedProcessors/DangerousEvaluate.py rename to SharedDangerousProcessors/DangerousEvaluate.py diff --git a/SharedProcessors/DangerousRunProcessors.py b/SharedDangerousProcessors/DangerousRunProcessors.py similarity index 100% rename from SharedProcessors/DangerousRunProcessors.py rename to SharedDangerousProcessors/DangerousRunProcessors.py diff --git a/SharedDangerousProcessors/jgstew-SharedDangerousProcessors.recipe b/SharedDangerousProcessors/jgstew-SharedDangerousProcessors.recipe new file mode 100644 index 0000000..18f20a2 --- /dev/null +++ b/SharedDangerousProcessors/jgstew-SharedDangerousProcessors.recipe @@ -0,0 +1,17 @@ + + + + + Description + Dummy recipe for referencing shared processors in this directory. + Identifier + com.github.jgstew.SharedDangerousProcessors + Input + + MinimumVersion + 1.0 + Process + + + diff --git a/Test-Recipes/DangerousCommandRunner.test.recipe.yaml b/Test-Recipes/DangerousCommandRunner.test.recipe.yaml index 66cee98..ac425c8 100644 --- a/Test-Recipes/DangerousCommandRunner.test.recipe.yaml +++ b/Test-Recipes/DangerousCommandRunner.test.recipe.yaml @@ -5,7 +5,7 @@ Input: NAME: DangerousCommandRunnerTest MinimumVersion: "2.3" Process: - - Processor: com.github.jgstew.SharedProcessors/DangerousCommandRunner + - Processor: com.github.jgstew.SharedDangerousProcessors/DangerousCommandRunner Arguments: # curl is only being used here as a cross platform example # this processor was NOT designed to be used with curl diff --git a/Test-Recipes/DangerousEvaluate.test.recipe.yaml b/Test-Recipes/DangerousEvaluate.test.recipe.yaml index 098eb89..9e991b7 100644 --- a/Test-Recipes/DangerousEvaluate.test.recipe.yaml +++ b/Test-Recipes/DangerousEvaluate.test.recipe.yaml @@ -6,6 +6,6 @@ Input: Test_ENV_VAR: "test value %NAME%" MinimumVersion: "2.3" Process: - - Processor: com.github.jgstew.SharedProcessors/DangerousEvaluate + - Processor: com.github.jgstew.SharedDangerousProcessors/DangerousEvaluate Arguments: evaluate_string: "for item in self.env: print(f'{item} = {str(self.env[item])[0:60]}...')" diff --git a/Test-Recipes/DangerousRunProcessors.test.recipe.yaml b/Test-Recipes/DangerousRunProcessors.test.recipe.yaml index 1fcbfcc..2577491 100644 --- a/Test-Recipes/DangerousRunProcessors.test.recipe.yaml +++ b/Test-Recipes/DangerousRunProcessors.test.recipe.yaml @@ -5,7 +5,7 @@ Input: NAME: DangerousRunProcessorsTest MinimumVersion: "2.3" Process: - - Processor: com.github.jgstew.SharedProcessors/DangerousRunProcessors + - Processor: com.github.jgstew.SharedDangerousProcessors/DangerousRunProcessors Arguments: dangerous_processor_array: ["FileFinder"] pattern: "*/*.recipe*"