make

package
v0.0.0-...-d71205c Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewmakeDB

func NewmakeDB(dbHost, dbUser, dbPass string, dbPort int) *makeDB

NewmakeDB will instantiate a new makeDB struct

Types

type Make

type Make struct {
	Path string
}

type Site

type Site struct {
	Timestamp string
	Path      string
	Name      string
	Alias     string
	Domain    string
	Docroot   string

	Webserver       string
	Vhostpath       string
	Template        string
	AliasTemplate   string
	FilePathPrivate string
	FilePathPublic  string
	FilePathTemp    string
	WorkingCopy     bool
	Composer        bool
	// contains filtered or unexported fields
}

Site struct which represents a build website being used.

func NewSite

func NewSite(make, name, path, alias, webserver, domain, vhostpath, template string) *Site

NewSite instantiates an instance of the struct Site

func (*Site) ActionInstall

func (Site *Site) ActionInstall()

ActionInstall runs drush site-install on a Site struct

func (*Site) AliasExists

func (Site *Site) AliasExists(filter string) bool

AliasExists returns a boolean for the status of a given alias in a given list.

func (*Site) AliasInstall

func (Site *Site) AliasInstall(docroot string)

AliasInstall installs an alias for a given site struct

func (*Site) AliasUninstall

func (Site *Site) AliasUninstall()

AliasUninstall un-installs an alias for a given site struct

func (*Site) CleanCodebase

func (Site *Site) CleanCodebase()

CleanCodebase will remove all data from the site path other than the /sites folder and contents.

func (*Site) DatabaseSet

func (Site *Site) DatabaseSet(database *makeDB)

DatabaseSet sets the database field to an inputted *makeDB struct.

func (*Site) DatabasesGet

func (Site *Site) DatabasesGet() []string

DatabasesGet returns a list of databases associated to local builds from the site struct

func (*Site) Destroy

func (Site *Site) Destroy()

Destroy is an API call for site removal.

func (*Site) InstallSiteRef

func (Site *Site) InstallSiteRef(Template string)

InstallSiteRef installs the Drupal multisite sites.php file for the site struct.

func (*Site) ReplaceTextInFile

func (Site *Site) ReplaceTextInFile()

ReplaceTextInFile reinstalls and verifies the ctools cache folder for the site struct.

func (*Site) SymInstall

func (Site *Site) SymInstall()

SymInstall installs a symlink to the site directory of the site struct

func (*Site) SymReinstall

func (Site *Site) SymReinstall()

SymReinstall re-installs a symlink to the site directory of the site struct

func (*Site) SymUninstall

func (Site *Site) SymUninstall()

SymUninstall removes a symlink to the site directory of the site struct

func (*Site) TimeStampGet

func (Site *Site) TimeStampGet() string

TimeStampGet returns the timestamp variable for the site struct

func (*Site) TimeStampReset

func (Site *Site) TimeStampReset()

TimeStampReset sets the timestamp field for the site struct to a new value

func (*Site) VhostInstall

func (Site *Site) VhostInstall()

VhostInstall install a virtual host

func (*Site) VhostUninstall

func (Site *Site) VhostUninstall()

VhostUninstall un-installs a virtual host

Jump to

Keyboard shortcuts

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