Skip to content

installers.base #

fn check #

fn check(args RedisInstallArgs) bool

fn develop #

fn develop(args InstallArgs) !

fn install #

fn install(args_ InstallArgs) !

install base will return true if it was already installed

fn redis_install #

fn redis_install(args_ RedisInstallArgs) !
struct InstallArgs {
    port    int    = 6379
    datadir string = '${os.home_dir()}/hero/var/redis'
    ipaddr  string = "localhost" //can be more than 1, space separated
    reset   bool
    start   bool
    restart bool = true
}

fn sshkeysinstall #

fn sshkeysinstall(args InstallArgs) !

fn start #

fn start(args RedisInstallArgs) !

fn stop #

fn stop() !

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	reset   bool
	develop bool
}

struct RedisInstallArgs #

@[params]
struct RedisInstallArgs {
pub mut:
	port    int    = 6379
	datadir string ='${os.home_dir()}/hero/var/redis'
	ipaddr  string = 'localhost' // can be more than 1, space separated
	reset   bool
	start   bool
	restart bool // do not put on true
}