(name, content string)
| 37 | } |
| 38 | |
| 39 | func (cd *ComposeDir) WriteFile(name, content string) { |
| 40 | if err := filesystem.WriteFile(filepath.Join(cd.dir, name), []byte(content), 0644); err != nil { |
| 41 | cd.t.Log(fmt.Sprintf("Failed to create file %v", err)) |
| 42 | cd.t.FailNow() |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func (cd *ComposeDir) YAMLFullPath() string { |
| 47 | return filepath.Join(cd.dir, cd.yamlBasePath) |