vagrant-windows 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,21 @@ require 'vagrant/driver/virtualbox'
5
5
  module Vagrant
6
6
  module Driver
7
7
 
8
+ class VirtualBox_4_2 < VirtualBoxBase
9
+ def read_mac_addresses
10
+ macs = {}
11
+ info = execute("showvminfo", @uuid, "--machinereadable", :retryable => true)
12
+ info.split("\n").each do |line|
13
+ if matcher = /^macaddress(\d+)="(.+?)"$/.match(line)
14
+ adapter = matcher[1].to_i
15
+ mac = matcher[2].to_s
16
+ macs[adapter] = mac
17
+ end
18
+ end
19
+ macs
20
+ end
21
+ end
22
+
8
23
  class VirtualBox_4_1 < VirtualBoxBase
9
24
  def read_mac_addresses
10
25
  macs = {}
@@ -16,7 +31,7 @@ module Vagrant
16
31
  macs[adapter] = mac
17
32
  end
18
33
  end
19
- macs
34
+ macs
20
35
  end
21
36
  end
22
37
 
@@ -31,7 +46,7 @@ module Vagrant
31
46
  macs[adapter] = mac
32
47
  end
33
48
  end
34
- macs
49
+ macs
35
50
  end
36
51
  end
37
52
 
@@ -1,3 +1,3 @@
1
1
  module VagrantWindows
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-windows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-11 00:00:00.000000000 Z
12
+ date: 2012-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: winrm