Sha256: 537aac930b4ca2c4776ec1b39aa8830cda4b991c2ae818c77b106c542af2ebd2
Contents?: true
Size: 531 Bytes
Versions: 26
Compression:
Stored size: 531 Bytes
Contents
module VagrantPlugins module ProviderVirtualBox module Driver class Version_4_2 def read_mac_addresses macs = {} info = execute("showvminfo", @uuid, "--machinereadable", :retryable => true) info.split("\n").each do |line| if matcher = /^macaddress(\d+)="(.+?)"$/.match(line) adapter = matcher[1].to_i mac = matcher[2].to_s macs[adapter] = mac end end macs end end end end end
Version data entries
26 entries across 26 versions & 2 rubygems