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

Version Path
vagrant-windows-1.7.0.pre.2 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.7.0.pre.1 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.6.0 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-plugin-dummy-0.0.7 windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.6.0.pre.1 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-plugin-dummy-0.0.6 windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-plugin-dummy-0.0.5 windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.5.1 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.5.0 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.4.0 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.3.2 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.3.1 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.3.0 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.3.0.pre.3 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.3.0.pre.2 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.3.0.pre.1 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.2.3 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-windows-1.2.2 lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-plugin-dummy-0.0.4 windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
vagrant-plugin-dummy-0.0.3 windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb