remove unstable acknowledgements

This commit is contained in:
Brad Rydzewski 2016-07-13 12:00:07 -07:00
parent 8ce22709f0
commit e573d66b91
2 changed files with 2 additions and 48 deletions

View file

@ -43,9 +43,9 @@ func buildStart(c *cli.Context) (err error) {
var build *model.Build var build *model.Build
if c.Bool("fork") { if c.Bool("fork") {
build, err = client.BuildStart(owner, name, number)
} else {
build, err = client.BuildFork(owner, name, number) build, err = client.BuildFork(owner, name, number)
} else {
build, err = client.BuildStart(owner, name, number)
} }
if err != nil { if err != nil {
return err return err

View file

@ -1,9 +1,7 @@
package main package main
import ( import (
"fmt"
"net/http" "net/http"
"os"
"time" "time"
"github.com/drone/drone/router" "github.com/drone/drone/router"
@ -263,30 +261,11 @@ var serverCmd = cli.Command{
Name: "stash-skip-verify", Name: "stash-skip-verify",
Usage: "stash skip ssl verification", Usage: "stash skip ssl verification",
}, },
//
// remove these eventually
//
cli.BoolFlag{
Name: "agreement.ack",
EnvVar: "I_UNDERSTAND_I_AM_USING_AN_UNSTABLE_VERSION",
Usage: "agree to terms of use.",
},
cli.BoolFlag{
Name: "agreement.fix",
EnvVar: "I_AGREE_TO_FIX_BUGS_AND_NOT_FILE_BUGS",
Usage: "agree to terms of use.",
},
}, },
} }
func server(c *cli.Context) error { func server(c *cli.Context) error {
if c.Bool("agreement.ack") == false || c.Bool("agreement.fix") == false {
fmt.Println(agreement)
os.Exit(1)
}
// debug level if requested by user // debug level if requested by user
if c.Bool("debug") { if c.Bool("debug") {
logrus.SetLevel(logrus.DebugLevel) logrus.SetLevel(logrus.DebugLevel)
@ -324,28 +303,3 @@ func server(c *cli.Context) error {
handler, handler,
) )
} }
var agreement = `
---
You are attempting to use the unstable channel. This build is experimental and
has known bugs and compatibility issues. It is not intended for general use.
Please consider using the latest stable release instead:
drone/drone:0.4.2
If you are attempting to build from source please use the latest stable tag:
v0.4.2
If you are interested in testing this experimental build AND assisting with
development you may proceed by setting the following environment:
I_UNDERSTAND_I_AM_USING_AN_UNSTABLE_VERSION=true
I_AGREE_TO_FIX_BUGS_AND_NOT_FILE_BUGS=true
---
`