installers.web.zola #
zola
To get started
import freeflowuniverse.crystallib.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 switch #
fn switch(name string)
switch instance to be used for zola
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string = 'default'
}
///////FACTORY
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////# LIVE CYCLE MANAGEMENT FOR INSTALLERS /////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////
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) destroy #
fn (mut self ZolaInstaller) destroy() !
fn (ZolaInstaller) install #
fn (mut self ZolaInstaller) install(args InstallArgs) !