added some code to keep track of config services separately within core nodes, added function for starting config services during session instantiation

This commit is contained in:
Blake Harnden 2020-01-17 16:57:49 -08:00
parent dbc77d81f6
commit 191a9e9909
8 changed files with 87 additions and 26 deletions

View file

@ -0,0 +1,22 @@
from core.configservice.base import ConfigService, ConfigServiceMode
class SimpleService(ConfigService):
name = "Simple"
group = "SimpleGroup"
directories = []
executables = []
dependencies = []
startup = []
validate = []
shutdown = []
validation_mode = ConfigServiceMode.BLOCKING
default_configs = []
def create_files(self):
text = """
# sample script
# node id(${node.id}) name(${node.name})
echo hello
"""
self.render_text("test1.sh", text)