release

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Release

type Release struct {
	Timestamp    string
	DeployPath   string
	ReleasesPath string
	ReleasePath  string
	CurrentPath  string
}

func NewRelease

func NewRelease(deployPath string) *Release

func (*Release) Cleanup

func (r *Release) Cleanup(keep int) error

Clean up old releases

func (*Release) Create

func (r *Release) Create(originPath string) error

Create release directories

func (*Release) Deploy

func (r *Release) Deploy(originPath string, keep int, prune bool) error

Deploy release

func (*Release) PrunedDirs

func (r *Release) PrunedDirs(keep int) ([]string, error)

PrunedDirs returns the string slice of directories that it will be pruned.

func (*Release) Rollback

func (r *Release) Rollback() error

Rollback to old release

func (*Release) SetReleasePath

func (r *Release) SetReleasePath(timestamp string)
func (r *Release) Symlink() error

Jump to

Keyboard shortcuts

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