heroku

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Gommand to the current commit hash
	CmdRevParse = "COMMIT=$(git rev-parse HEAD)"

	// Command to set the git user and email based on the
	// individual that made the commit.
	CmdGlobalEmail = "git config --global user.email $(git --no-pager log -1 --pretty=format:'%ae')"
	CmdGlobalUser  = "git config --global user.name  $(git --no-pager log -1 --pretty=format:'%an')"

	// Command to write the API token to ~/.netrc
	// use "_" since heroku git authentication ignores username
	CmdLogin = "echo 'machine git.heroku.com login _ password %s' >> ~/.netrc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Heroku

type Heroku struct {
	App   string `yaml:"app,omitempty"`
	Force bool   `yaml:"force,omitempty"`
	Token string `yaml:"token,omitempty"`

	Condition *condition.Condition `yaml:"when,omitempty"`
}

func (*Heroku) GetCondition

func (h *Heroku) GetCondition() *condition.Condition

func (*Heroku) Write

func (h *Heroku) Write(f *buildfile.Buildfile)

Jump to

Keyboard shortcuts

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