installers.web.zola #
zola
To get started
import freeflowuniverse.herolib.installers.something. zola
mut installer:= zola.get()!
installer.start()!
example heroscript
!!zola.install
homedir: '/home/user/zola'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '0.18.0'
fn get #
fn get(args_ ArgsGet) !&ZolaInstaller
fn play #
fn play(args_ PlayArgs) !
fn switch #
fn switch(name string)
switch instance to be used for zola
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////FACTORY
struct DefaultConfigArgs #
@[params]
struct DefaultConfigArgs {
instance string = 'default'
}
helpers
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
struct PlayArgs #
@[params]
struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}
struct ZolaInstaller #
struct ZolaInstaller {
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 (ZolaInstaller) build #
fn (mut self ZolaInstaller) build() !
fn (ZolaInstaller) destroy #
fn (mut self ZolaInstaller) destroy() !
fn (ZolaInstaller) install #
fn (mut self ZolaInstaller) install(args InstallArgs) !