()
| 106 | } |
| 107 | |
| 108 | func (d DevCacheConfig) GetDir() string { |
| 109 | homeDir, err := os.UserHomeDir() |
| 110 | if err != nil { |
| 111 | panic("cannot get user home dir: " + err.Error()) |
| 112 | } |
| 113 | |
| 114 | hostName := d.ctx.Platform().GetHostName() |
| 115 | return filepath.Join(homeDir, "celer", hostName+"-dev") |
| 116 | } |
| 117 | |
| 118 | func (d DevCacheConfig) GetDevArtifactCache() context.DevAritifactCache { |
| 119 | return d.devArtifactCache |
no test coverage detected