updates to config services dialogs in coretk, initial working state for running config services from the coretk gui
This commit is contained in:
parent
83e7853821
commit
da107cc1d9
9 changed files with 111 additions and 209 deletions
|
@ -4,8 +4,8 @@ from core.configservice.base import ConfigService, ConfigServiceMode
|
|||
class SimpleService(ConfigService):
|
||||
name = "Simple"
|
||||
group = "SimpleGroup"
|
||||
directories = []
|
||||
files = ["test1.sh"]
|
||||
directories = ["/etc/quagga", "/usr/local/lib"]
|
||||
files = ["test1.sh", "test2.sh"]
|
||||
executables = []
|
||||
dependencies = []
|
||||
startup = []
|
||||
|
@ -17,7 +17,13 @@ class SimpleService(ConfigService):
|
|||
def get_text(self, name: str) -> str:
|
||||
if name == "test1.sh":
|
||||
return """
|
||||
# sample script
|
||||
# sample script 1
|
||||
# node id(${node.id}) name(${node.name})
|
||||
echo hello
|
||||
"""
|
||||
elif name == "test2.sh":
|
||||
return """
|
||||
# sample script 2
|
||||
# node id(${node.id}) name(${node.name})
|
||||
echo hello2
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue