deployment

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deploy

type Deploy struct {
	ConfigContext config.Context
	ProjectID     string
	ServiceID     string
	LocationRemap []string
	Path          string
	Services      services.ServiceInfoList
	Quiet         bool
	// contains filtered or unexported fields
}

Deploy project

func (*Deploy) AddRemote

func (d *Deploy) AddRemote() error

AddRemote on project

func (*Deploy) Cleanup

func (d *Deploy) Cleanup() error

Cleanup directory

func (*Deploy) Commit

func (d *Deploy) Commit() (commit string, err error)

Commit adds all files and commits

func (*Deploy) Do

func (d *Deploy) Do(ctx context.Context) error

Do deployment

func (*Deploy) GetCurrentBranch

func (d *Deploy) GetCurrentBranch() (branch string, err error)

GetCurrentBranch gets the current branch

func (*Deploy) GetGroupUID

func (d *Deploy) GetGroupUID() string

GetGroupUID gets the deployment group UID

func (*Deploy) Push

func (d *Deploy) Push() (groupUID string, err error)

Push deployment to the WeDeploy remote

func (*Deploy) UploadDuration

func (d *Deploy) UploadDuration() time.Duration

UploadDuration for deployment (only correct after it finishes)

Jump to

Keyboard shortcuts

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