MCPcopy Create free account
hub / github.com/DBCDK/morph / execExecute

Function execExecute

morph.go:316–330  ·  view source on GitHub ↗
(hosts []nix.Host)

Source from the content-addressed store, hash-verified

314}
315
316func execExecute(hosts []nix.Host) error {
317 sshContext := createSSHContext()
318
319 for _, host := range hosts {
320 if host.BuildOnly {
321 fmt.Fprintf(os.Stderr, "Exec is disabled for build-only host: %s\n", host.Name)
322 continue
323 }
324 fmt.Fprintln(os.Stderr, "** "+host.Name)
325 sshContext.CmdInteractive(&host, timeout, executeCommand...)
326 fmt.Fprintln(os.Stderr)
327 }
328
329 return nil
330}
331
332func execBuild(hosts []nix.Host) (string, error) {
333 resultPath, err := buildHosts(hosts)

Callers 1

mainFunction · 0.85

Calls 2

createSSHContextFunction · 0.85
CmdInteractiveMethod · 0.65

Tested by

no test coverage detected