Merge pull request #30 from fkautz/pr_out_removing_binaries

Removing binaries
master
Harshavardhana 10 years ago
commit be17f50d17
  1. 2
      Makefile
  2. 29
      cmd/minio-sandbox/main.go
  3. 44
      cmd/minio/main.go

@ -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 ./...

@ -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)
}
}

@ -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))
}
}
Loading…
Cancel
Save