installers.infra.zinit_installer #
Installer - Zinit Installer Module
This module provides heroscript actions for installing and managing Zinit.
Actions
zinit_installer.install
Installs the Zinit process manager.
Parameters:
reset(bool): If true, force a reinstall even if Zinit is already detected. Default:false.
Example:
!!zinit_installer.install
reset: true
Constants #
const version = '0.2.27'
fn get #
fn get(args ArgsGet) !&ZinitInstaller
fn heroscript_dumps #
fn heroscript_dumps(obj ZinitInstaller) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !ZinitInstaller
fn new #
fn new(args ArgsGet) !&ZinitInstaller
fn play #
fn play(mut plbook PlayBook) !
fn switch #
fn switch(name string)
switch instance to be used for zinit_installer
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string = 'default'
}
///////FACTORY
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
struct ZinitInstaller #
@[heap]
struct ZinitInstaller {
pub mut:
name string = 'default'
}
THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
fn (ZinitInstaller) build #
fn (mut self ZinitInstaller) build() !
fn (ZinitInstaller) destroy #
fn (mut self ZinitInstaller) destroy() !
fn (ZinitInstaller) install #
fn (mut self ZinitInstaller) install(args InstallArgs) !
fn (ZinitInstaller) install_start #
fn (mut self ZinitInstaller) install_start(args InstallArgs) !
fn (ZinitInstaller) restart #
fn (mut self ZinitInstaller) restart() !
fn (ZinitInstaller) running #
fn (mut self ZinitInstaller) running() !bool
fn (ZinitInstaller) start #
fn (mut self ZinitInstaller) start() !
fn (ZinitInstaller) stop #
fn (mut self ZinitInstaller) stop() !