(hosts []nix.Host)
| 314 | } |
| 315 | |
| 316 | func 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 | |
| 332 | func execBuild(hosts []nix.Host) (string, error) { |
| 333 | resultPath, err := buildHosts(hosts) |
no test coverage detected