Exemplo n.º 1
0
func main() {
	sf := flag.Bool("secure", true, "whether or not to use SSL and BasicAuth, defaults to true")
	flag.Parse()

	p, err := repo.MakeDeploymentStore(dbLocation())
	if err != nil {
		log.Fatal(err)
	}
	c := adapter.MakeClient(adapterEndpoint())
	dm := agent.MakeDeploymentManager(p, c, version())
	s := makeServer(dm, sf)
	s.Start(serverPort())
}
Exemplo n.º 2
0
func init() {
	ps, _ = repo.MakeDeploymentStore("../db/agent_test.db")
}