1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

sshable should take the same options as ssh

This commit is contained in:
Anshul Khandelwal 2013-03-06 22:01:16 +05:30
parent c861455c91
commit 7c7b308b38

View file

@ -62,8 +62,8 @@ module Fog
22
end
def sshable?
ready? && !public_ip_address.nil? && !!Timeout::timeout(8) { ssh 'pwd' }
def sshable?(options={})
ready? && !public_ip_address.nil? && !!Timeout::timeout(8) { ssh('pwd', options) }
rescue SystemCallError, Net::SSH::AuthenticationFailed, Timeout::Error
false
end