]> git.e2factory.org Git - e2factory.git/commit
Introduce result classes
authorTobias Ulmer <tu@emlix.com>
Wed, 25 May 2016 14:34:34 +0000 (16:34 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
commit0337417bb9838979d26453bcde228329a8f8effc
tree031a301b62020ff3423f59a9e6754ea9b8b442bd
parentf4b48b4807305ab2b86c6ec0c5034117a76da04e
Introduce result classes

basic_result class implements all common methods, but can't be used on
its own.

result_class represents the standard result type.

Special results can inherit from one of the two classes, overwriting
methods and such.

Composition is of course also possible, and may even be the better
option for plugins.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/Makefile
local/result.lua [new file with mode: 0644]