Merge pull request #30 from fkautz/pr_out_removing_binaries

Removing binaries
This commit is contained in:
Harshavardhana 2014-11-22 17:06:12 -08:00
commit be17f50d17
3 changed files with 0 additions and 75 deletions

View File

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

View File

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

View File

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