woodpecker/plugin/remote/gitlab/init.go

18 lines
288 B
Go
Raw Normal View History

2014-07-13 02:01:58 +00:00
package gitlab
import (
"github.com/drone/drone/plugin/remote"
"github.com/drone/drone/shared/model"
)
func init() {
remote.Register(model.RemoteGitlab, plugin)
}
func plugin(remote *model.Remote) remote.Remote {
return &Gitlab{
URL: remote.URL,
Enabled: remote.Open,
}
}