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)) }
func (env *TestEnv) WriteFile(path string, data string) { utils.MustWriteFile(env.fs, path, data) }
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) }