Sha256: f32e43202b15a321b0b6c5e0ba15cb2900f1c29a6d4afe0d5a8858e4ad12cbb2
Contents?: true
Size: 452 Bytes
Versions: 56
Compression:
Stored size: 452 Bytes
Contents
module VagrantPlugins module GuestDarwin module Cap module ChooseAddressableIPAddr def self.choose_addressable_ip_addr(machine, possible) comm = machine.communicate possible.each do |ip| if comm.test("ping -c1 -t1 #{ip}") return ip end end # If we got this far, there are no addressable IPs return nil end end end end end
Version data entries
56 entries across 52 versions & 6 rubygems