Example #1
0
func startGarden(argv ...string) *runner.RunningGarden {
	if networkModulePath := os.Getenv("NETWORK_MODULE_PATH"); networkModulePath != "" {
		argv = append(argv, "--networkModulePath="+networkModulePath)
	}

	return runner.Start(gardenBin, iodaemonBin, nstarBin, argv...)
}
Example #2
0
func startGarden(argv ...string) *runner.RunningGarden {
	gardenBin, err := gexec.Build("github.com/cloudfoundry-incubator/guardian/cmd/guardian")
	Expect(err).NotTo(HaveOccurred())

	iodaemonBin, err := gexec.Build("github.com/cloudfoundry-incubator/guardian/rundmc/iodaemon/cmd/iodaemon")
	Expect(err).NotTo(HaveOccurred())

	return runner.Start(gardenBin, iodaemonBin, argv...)
}