MCPcopy
hub / github.com/google/cadvisor / wrapSSH

Method wrapSSH

integration/framework/framework.go:412–420  ·  view source on GitHub ↗
(command string, args ...string)

Source from the content-addressed store, hash-verified

410}
411
412func (a shellActions) wrapSSH(command string, args ...string) *exec.Cmd {
413 cmd := []string{a.fm.Hostname().Host, "--", "sh", "-c", "\"", command}
414 cmd = append(cmd, args...)
415 cmd = append(cmd, "\"")
416 if *sshOptions != "" {
417 cmd = append(strings.Split(*sshOptions, " "), cmd...)
418 }
419 return exec.Command("ssh", cmd...)
420}
421
422func (a shellActions) Run(command string, args ...string) (string, string) {
423 var cmd *exec.Cmd

Callers 2

RunMethod · 0.95
RunStressMethod · 0.95

Calls 1

HostnameMethod · 0.65

Tested by

no test coverage detected