]> Kevux Git Server - fll/commit
Progress: controller program and execute function improvements.
authorKevin Day <thekevinday@gmail.com>
Sun, 20 Dec 2020 04:04:04 +0000 (22:04 -0600)
committerKevin Day <thekevinday@gmail.com>
Sun, 20 Dec 2020 04:08:31 +0000 (22:08 -0600)
commitbf6b35d908440cb5b23ae505caab125d02e94686
tree5c237dc08562714b9dd307135049b50fe429d999
parent0fbdaa31ac256825f9c00493d10f230d07dcb252
Progress: controller program and execute function improvements.

Get rid f fl_execute_parameter_option_fixated.
A better approach is just to allow a 0 to be passed instead of the string (aka: NULL).
The execute functions can then detect whether or not full fixation is needed.
An additional parameter check is now needed as if the program is 0 then there must be at least 1 argument defined.

Due to design changes the 'method' property for individual rule actions no longer needs to be on the rule action structure.
In fact, it is now confusing as each action represents only a single action (itself).

Add support for the "script" rule setting to designate the script program to run for scripts.

Add additional example entries and rules.
18 files changed:
level_1/fl_execute/c/execute-common.h
level_2/fll_execute/c/execute.c
level_2/fll_execute/c/execute.h
level_2/fll_execute/c/private-execute.c
level_2/fll_execute/c/private-execute.h
level_3/controller/c/controller.h
level_3/controller/c/private-common.h
level_3/controller/c/private-rule.c
level_3/controller/c/private-rule.h
level_3/controller/data/settings/example/entries/test.entry [new file with mode: 0644]
level_3/controller/data/settings/example/rules/command/multiple.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/maintenance/explode.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/script/fail.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/script/php.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/script/python.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/script/succeed.rule [new file with mode: 0644]
level_3/controller/documents/rule.txt
level_3/controller/specifications/rule.txt