Documentation ¶
Index ¶
- func NewmakeDB(dbHost, dbUser, dbPass string, dbPort int) *makeDB
- type Make
- type Site
- func (Site *Site) ActionInstall()
- func (Site *Site) AliasExists(filter string) bool
- func (Site *Site) AliasInstall(docroot string)
- func (Site *Site) AliasUninstall()
- func (Site *Site) CleanCodebase()
- func (Site *Site) DatabaseSet(database *makeDB)
- func (Site *Site) DatabasesGet() []string
- func (Site *Site) Destroy()
- func (Site *Site) InstallSiteRef(Template string)
- func (Site *Site) ReplaceTextInFile()
- func (Site *Site) SymInstall()
- func (Site *Site) SymReinstall()
- func (Site *Site) SymUninstall()
- func (Site *Site) TimeStampGet() string
- func (Site *Site) TimeStampReset()
- func (Site *Site) VhostInstall()
- func (Site *Site) VhostUninstall()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 (*Site) ActionInstall ¶
func (Site *Site) ActionInstall()
ActionInstall runs drush site-install on a Site struct
func (*Site) AliasExists ¶
AliasExists returns a boolean for the status of a given alias in a given list.
func (*Site) AliasInstall ¶
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 ¶
DatabasesGet returns a list of databases associated to local builds from the site struct
func (*Site) InstallSiteRef ¶
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 ¶
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) VhostUninstall ¶
func (Site *Site) VhostUninstall()
VhostUninstall un-installs a virtual host