MCPcopy Index your code
hub / github.com/jetify-com/devbox / updateServiceStatusOnRemote

Function updateServiceStatusOnRemote

internal/services/status.go:123–134  ·  view source on GitHub ↗

lint:ignore U1000 Ignore unused function temporarily for debugging

(projectDir string, s *ServiceStatus)

Source from the content-addressed store, hash-verified

121
122//lint:ignore U1000 Ignore unused function temporarily for debugging
123func updateServiceStatusOnRemote(projectDir string, s *ServiceStatus) error {
124 if !envir.IsDevboxCloud() {
125 return nil
126 }
127 host, err := os.Hostname()
128 if err != nil {
129 return errors.WithStack(err)
130 }
131
132 cloudDirPath := cloudFilePath(projectDir)
133 return writeServiceStatusFile(filepath.Join(cloudDirPath, host, s.Name+".json"), s)
134}
135
136func readServiceStatus(path string) (*ServiceStatus, error) {
137 _, err := os.Stat(path)

Callers

nothing calls this directly

Calls 3

IsDevboxCloudFunction · 0.92
cloudFilePathFunction · 0.85
writeServiceStatusFileFunction · 0.85

Tested by

no test coverage detected