hooks

package
v1.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingHook is used when the main hook action is missing
	ErrMissingHook = errors.New("Missing hook.")
)

Functions

func Run

func Run(command string) error

Run a process synchronously inheriting stderr and stdout

func RunAndExitOnFailure

func RunAndExitOnFailure(command string)

RunAndExitOnFailure inheriting stderr and stdout, but kill itself on error

Types

type Hooks

type Hooks struct {
	BeforeBuild  string `json:"before_build" mapstructure:"before_build"`
	Build        string `json:"build"`
	AfterBuild   string `json:"after_build" mapstructure:"after_build"`
	BeforeDeploy string `json:"before_deploy" mapstructure:"before_deploy"`
	Deploy       string `json:"deploy"`
	AfterDeploy  string `json:"after_deploy" mapstructure:"after_deploy"`
}

Hooks (after / deploy / main action)

Jump to

Keyboard shortcuts

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