7digital/roadrunner — pull request #12 by actionshrimp (2013-08-14 16:57:48+00:00)
Title: Rework remote targets (using ssh2) and logging

Fix for issue #10.

I've tested this quite a bit with simple hello world / garbage commands over an ssh connection, and with bad ssh credentials so the connection step fails and it all looks ok.

- Tidy up logging so it reads sensibly based on testing, and remove
duplicate logging events
- Tidy up remotecontrol.js wrapper around ssh2 based on new
understanding of the behavior of the library and be a bit more
defensive.
- createChain and uploadFile are no longer passed from remotecontrol to
remotetarget via callback as remotetarget wasnt using them.