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:
parent
c861455c91
commit
7c7b308b38
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue