manager

package
v0.0.0-...-dae269f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDrupalVersion = "^9.0.0"

DefaultDrupalVersion is the default drupal version

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	ingredient.Base
	Dependencies struct {
		Barrel      *barrel.Barrel
		Bookkeeping *bookkeeping.Bookkeeping

		SystemManager *system.SystemManager

		Composer *composer.Composer
		Drush    *drush.Drush

		Adapters *extras.Adapters
		Settings *extras.Settings
	}
}

Manager manages a profile applied to specific WissKI instances.

func (*Manager) Apply

func (manager *Manager) Apply(ctx context.Context, progress io.Writer, flags Profile) error

Apply applies the given profile to this existing instance.

func (*Manager) Provision

func (manager *Manager) Provision(ctx context.Context, progress io.Writer, system models.System, flags Profile) error

Provision provisions this instance with the given flags.

Provision assumes that the instance does not yet exist, and may fail with an existing instance.

Provision applies defaults to flags, to ensure some values are set

type Profile

type Profile struct {
	Drupal string // Version of Drupal to use
	WissKI string // Version of WissKI to use

	InstallModules []string // Modules to be installed (but not neccessarily enabled)
	EnableModules  []string // Modules to be installed and enabled
}

Profile represents a profile applied to a WissKI instance of the Distillery.

func (*Profile) ApplyDefaults

func (profile *Profile) ApplyDefaults()

ApplyDefaults applies the default settings to missing profile settings.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL