rename some installers, fix installer service startup w/ zinit
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
!!hero_code.generate_installer
|
||||
name:''
|
||||
classname:'OsirisrunnerServer'
|
||||
classname:'Osirisrunner'
|
||||
singleton:0
|
||||
templates:1
|
||||
default:1
|
||||
|
||||
@@ -12,7 +12,7 @@ const default = true
|
||||
|
||||
// THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
|
||||
@[heap]
|
||||
pub struct OsirisrunnerServer {
|
||||
pub struct Osirisrunner {
|
||||
pub mut:
|
||||
name string = 'default'
|
||||
binary_path string = os.join_path(os.home_dir(), 'hero/bin/runner_osiris')
|
||||
@@ -22,7 +22,7 @@ pub mut:
|
||||
}
|
||||
|
||||
// your checking & initialization code if needed
|
||||
fn obj_init(mycfg_ OsirisrunnerServer) !OsirisrunnerServer {
|
||||
fn obj_init(mycfg_ Osirisrunner) !Osirisrunner {
|
||||
mut mycfg := mycfg_
|
||||
if mycfg.name == '' {
|
||||
mycfg.name = 'default'
|
||||
@@ -52,11 +52,11 @@ fn configure() ! {
|
||||
|
||||
/////////////NORMALLY NO NEED TO TOUCH
|
||||
|
||||
pub fn heroscript_dumps(obj OsirisrunnerServer) !string {
|
||||
return encoderhero.encode[OsirisrunnerServer](obj)!
|
||||
pub fn heroscript_dumps(obj Osirisrunner) !string {
|
||||
return encoderhero.encode[Osirisrunner](obj)!
|
||||
}
|
||||
|
||||
pub fn heroscript_loads(heroscript string) !OsirisrunnerServer {
|
||||
mut obj := encoderhero.decode[OsirisrunnerServer](heroscript)!
|
||||
pub fn heroscript_loads(heroscript string) !Osirisrunner {
|
||||
mut obj := encoderhero.decode[Osirisrunner](heroscript)!
|
||||
return obj
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user