Sha256: bde0af9fc8cf4f53dda39e2ee47d89f5a88d81d6b788e97639aa3f780a9dea75
Contents?: true
Size: 449 Bytes
Versions: 7
Compression:
Stored size: 449 Bytes
Contents
module VagrantPlugins module GuestLinux module Cap module ChooseAddressableIPAddr def self.choose_addressable_ip_addr(machine, possible) machine.communicate.tap do |comm| possible.each do |ip| command = "ping -c1 -w1 -W1 #{ip}" if comm.test(command) return ip end end end nil end end end end end
Version data entries
7 entries across 4 versions & 3 rubygems