Documentation ¶
Index ¶
- Constants
- Variables
- func AliasEnvironment(env string) string
- func GitHubRepo(remotes []hub.Remote) string
- func NewApp() *cli.App
- func Ref(ref string, headFunc func() (string, error)) string
- func Repo(arguments []string) (string, error)
- func RunDeploy(c *cli.Context) error
- func SplitRepo(nwo, defaultOrg string) (owner string, repo string, err error)
- type Updater
Constants ¶
View Source
const ( Name = "deploy" Usage = "A command for creating GitHub deployments" )
View Source
const ( DefaultRef = "master" DefaultTimeout = 20 * time.Second )
View Source
const GitHubHost = "github.com"
View Source
const Version = "0.0.5"
Variables ¶
View Source
var EnvironmentAliases = map[string]string{
"prod": "production",
"stage": "staging",
}
View Source
var ProtectedEnvironments = map[string]bool{ "production": true, }
Functions ¶
func AliasEnvironment ¶ added in v0.0.5
func GitHubRepo ¶
GitHubRepo, given a list of git remotes, will determine what the GitHub repo is.
func Ref ¶
Ref attempts to return the proper git ref to deploy. If a ref is provided, that will be returned. If not, it will fallback to calling headFunc. If an error is returned (not in a git repo), then it will fallback to DefaultRef.
Types ¶
Click to show internal directories.
Click to hide internal directories.