deployment

package
v1.0.0-alpha-87 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: MIT Imports: 13 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
	Force             bool
	Remote            string
	RepoAuthorization string
	GitRemoteAddress  string
	// contains filtered or unexported fields
}

Deploy project

func (*Deploy) AddRemote

func (d *Deploy) AddRemote() error

AddRemote on project

func (*Deploy) CheckCurrentBranchIsMaster

func (d *Deploy) CheckCurrentBranchIsMaster() error

CheckCurrentBranchIsMaster checks if the current branch is master

func (*Deploy) CheckUncommittedChanges

func (d *Deploy) CheckUncommittedChanges() (stage string, err error)

CheckUncommittedChanges checks for uncommitted changes on the staging area

func (*Deploy) Commit

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

Commit adds all files and commits

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

func (d *Deploy) InitializeRepositoryIfNotExists() error

InitializeRepositoryIfNotExists as a git repo

func (*Deploy) Push

func (d *Deploy) Push() error

Push project to the WeDeploy remote

Jump to

Keyboard shortcuts

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