From 9c18624e58fbf9793d2b02ab49b227456cc330d0 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Sat, 22 Nov 2014 11:16:48 -0800 Subject: [PATCH] Removing binaries --- Makefile | 2 -- cmd/minio-sandbox/main.go | 29 -------------------------- cmd/minio/main.go | 44 --------------------------------------- 3 files changed, 75 deletions(-) delete mode 100644 cmd/minio-sandbox/main.go delete mode 100644 cmd/minio/main.go diff --git a/Makefile b/Makefile index 17da0e147..844163a91 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,8 @@ build-erasure: test: build-erasure godep go test -race -coverprofile=cover/cover.out github.com/minio-io/minio - godep go test -race github.com/minio-io/minio/cmd/minio install: build-erasure - godep go install github.com/minio-io/minio/cmd/minio save: godep save ./... diff --git a/cmd/minio-sandbox/main.go b/cmd/minio-sandbox/main.go deleted file mode 100644 index 0713edc19..000000000 --- a/cmd/minio-sandbox/main.go +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "github.com/codegangsta/cli" - "log" - "os" -) - -func main() { - app := cli.NewApp() - app.Commands = []cli.Command{ - { - Name: "put", - Usage: "Start a storage node", - Action: func(c *cli.Context) { - }, - }, - { - Name: "get", - Usage: "Start a gateway node", - Action: func(c *cli.Context) { - }, - }, - } - err := app.Run(os.Args) - if err != nil { - log.Fatal("App failed to load", err) - } -} diff --git a/cmd/minio/main.go b/cmd/minio/main.go deleted file mode 100644 index c75538a76..000000000 --- a/cmd/minio/main.go +++ /dev/null @@ -1,44 +0,0 @@ -package main - -import ( - "github.com/codegangsta/cli" - "github.com/gorilla/mux" - "github.com/minio-io/minio" - "log" - "net/http" - "os" -) - -func main() { - app := cli.NewApp() - router := mux.NewRouter() - runServer := false - app.Commands = []cli.Command{ - { - Name: "storage", - Usage: "Start a storage node", - Action: func(c *cli.Context) { - minio.RegisterStorageHandlers(router) - runServer = true - }, - }, - { - Name: "gateway", - Usage: "Start a gateway node", - Action: func(c *cli.Context) { - minio.RegisterGatewayHandlers(router, minio.GatewayConfig{ - StorageDriver: minio.InMemoryStorageDriver, - BucketDriver: minio.SynchronizedBucketDriver, - }) - runServer = true - }, - }, - } - err := app.Run(os.Args) - if err != nil { - log.Fatal("App failed to load", err) - } - if runServer { - log.Fatal(http.ListenAndServe(":8080", router)) - } -}