# File lib/rudy/routines/handlers/host.rb, line 70
70:     def is_available?(rset, port=22)
71:       raise NoMachines if rset.boxes.empty?
72:       rset.boxes.each do |rbox|
73:         mach = rbox.stash
74:         # This updates the DNS. It's important this happens
75:         # before and after the address is updated otherwise
76:         # certain errors will causes it to not be updated.  
77:         mach.refresh!
78:         msg = "Waiting for port #{port} on #{rbox.nickname} ..."
79:         port = 3389 if mach.windows?
80:         multi = mach.windows? ? 3 : 2
81:         interval, max = 1*multi, 30*multi
82:         Rudy::Utils.waiter(interval, max, STDOUT, msg, 0) {
83:           Rudy::Utils.service_available?(mach.dns_public, port)
84:         }
85:       end
86:     end