diff --git a/src/genmai/Doctor.go b/src/genmai/Doctor.go index a662570..ecc3de8 100644 --- a/src/genmai/Doctor.go +++ b/src/genmai/Doctor.go @@ -151,6 +151,7 @@ func (dtr *doctor)PushExplorerDBus(configfile string) error { } func (dtr *doctor)PushExplorerKernel(configfile string) error { + // TODO: need to test ek := ExplorerKernel{} ek.Setup(&ConfigParserYAML{}, &ExplorerConfigKernel{}) ek.LoadConfig(configfile) @@ -169,6 +170,7 @@ func (dtr *doctor)PushExplorerKernel(configfile string) error { } func (dtr *doctor)PushExplorerSystem(configfile string) error { + // TODO: need to test ek := ExplorerSystem{} ek.Setup(&ConfigParserYAML{}, &ExplorerConfigSystem{}) ek.LoadConfig(configfile) @@ -185,3 +187,22 @@ func (dtr *doctor)PushExplorerSystem(configfile string) error { return nil } + +func (dtr *doctor)PushExplorerWeb(configfile string) error { + // TODO: need to test + ek := ExplorerWeb{} + ek.Setup(&ConfigParserYAML{}, &ExplorerConfigWeb{}) + ek.LoadConfig(configfile) + + ek.SetupSandbox(&sandbox.SandboxDefault{}) + + config, rc := ek.GetExplorerConfigWeb() + /* */ + if (nil != rc) { + return rc + } // if (nil != ... + + dtr.ExplorersWeb[config.Id] = ek + + return nil +}