ActiveSSH returns the active ssh client
()
| 172 | |
| 173 | // ActiveSSH returns the active ssh client |
| 174 | func (sh *Shell) ActiveSSH() *sshclient.Client { |
| 175 | if sh.SSHActive == "" { |
| 176 | return nil |
| 177 | } |
| 178 | return sh.SSHClients[sh.SSHActive] |
| 179 | } |
| 180 | |
| 181 | // Host returns the name we're running commands on, |
| 182 | // which is empty if localhost (default). |
no outgoing calls
no test coverage detected