deployment

package
v1.0.0-alpha-113 Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: MIT Imports: 14 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 {
	Context           context.Context
	ProjectID         string
	Path              string
	Remote            string
	RepoAuthorization string
	GitRemoteAddress  string
}

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) CreateGitDirectory

func (d *Deploy) CreateGitDirectory() error

CreateGitDirectory creates the git directory for the deployment

func (*Deploy) Do

func (d *Deploy) Do() error

Do deployment

func (*Deploy) GetCurrentBranch

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

GetCurrentBranch gets the current branch

func (*Deploy) InitializeRepository

func (d *Deploy) InitializeRepository() error

InitializeRepository as a git repo

func (*Deploy) Push

func (d *Deploy) Push() error

Push deployment to the WeDeploy remote

Jump to

Keyboard shortcuts

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