1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-21 12:17:03 +02:00
Carlos Alexandro Becker ddec194c7e
wip ctx
2017-01-14 12:34:22 -02:00

27 lines
432 B
Go

package valid
import (
"errors"
"github.com/goreleaser/releaser/context"
)
// Pipe for brew deployment
type Pipe struct{}
// Name of the pipe
func (Pipe) Name() string {
return "Valid"
}
// Run the pipe
func (Pipe) Run(context *context.Context) (err error) {
if context.Config.BinaryName == "" {
return errors.New("missing binary_name")
}
if context.Config.Repo == "" {
return errors.New("missing repo")
}
return
}