RiotGames/ridley-connectors — pull request #22 by KAllan357 (2014-04-24 22:47:42+00:00)
Title: Allow Connector choosing to be "hinted"

The default behavior of checking the WinRM default port, timing out and then checking the SSH port can sometimes behave badly:

* JRuby + Timeout + `Celluloid::IO::TCPSocket` blocks or cannot be interrupted like we want (pull request soon)
* Network setups could allow closed connections to be attempted and time out (leading to a default of 3 retries every 3 seconds = 9 second delay)

This pull adds some options hashes to the methods in `node_resource` that all fall back to `host_commander`. The primary functionality is to allow `host_commander#connector_for` to have some flow-control logic for picking the right connector on the first try, based on the provided hint.