Beispiel #1
0
func (self *Exporter) writeServiceUnit(appName string, service procfile.Service) {
	fullServiceName := service.FullName(appName)

	service.HelperPath = self.Config.HelperPath(fullServiceName)
	helperData := self.provider.RenderHelperTemplate(service)
	utils.MustWriteFile(self.Fs, service.HelperPath, helperData)

	unitPath := self.UnitPath(fullServiceName)
	utils.MustWriteFile(self.Fs, unitPath, self.provider.RenderServiceTemplate(appName, service))
}
Beispiel #2
0
func (env *TestEnv) WriteFile(path string, data string) {
	utils.MustWriteFile(env.fs, path, data)
}
Beispiel #3
0
func (self *Exporter) writeAppUnit(appName string, app procfile.App) {
	path := self.UnitPath(appName)
	data := self.provider.RenderAppTemplate(appName, self.Config, app)
	utils.MustWriteFile(self.Fs, path, data)
}