packer-cn/communicator/ssh
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
* I had to contextualise Communicator.Start and RemoteCmd.StartWithUi
NOTE: Communicator.Start starts a RemoteCmd but RemoteCmd.StartWithUi will run the cmd and wait for a return, so I renamed StartWithUi to RunWithUi so that the intent is clearer.
Ideally in the future RunWithUi will be named back to StartWithUi and the exit status or wait funcs of the command will allow to wait for a return. If you do so please read carrefully https://golang.org/pkg/os/exec/#Cmd.Stdout to avoid a deadlock
* cmd.ExitStatus to cmd.ExitStatus() is now blocking to avoid race conditions
* also had to simplify StartWithUi
2019-04-08 20:09:21 +02:00
..
communicator.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
communicator_test.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
connect.go Fix copy/paste error in comment 2018-03-23 12:54:33 +00:00
connection.go ssh deadlines 2018-01-31 12:35:25 -08:00
password.go remove unnecessary type conversions 2017-03-28 20:36:21 -07:00
password_test.go spelling: keyboard 2018-03-13 08:07:31 +00:00