vagrant-parallels 1.2.0.rc1 → 1.2.0.rc2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fc01455732e664712d913020806753766fa2c11
4
- data.tar.gz: 83d9a5723aacfb1c01cbf210bc97aea553c87b44
3
+ metadata.gz: b967185c3b377e0b8ab1d1dd0c4cb44ee8065738
4
+ data.tar.gz: bbe12c18d4a46d956996ae08ad89c9bcb64e5e26
5
5
  SHA512:
6
- metadata.gz: a8565bde8a49ec3bf398be9a0c11a5e22ccb21286780d919fd5cd8cd63bbbf2d21373446a4be3640ecd3d0bea7ff9731114c6f3ef611049db4acd56f81cbd504
7
- data.tar.gz: ce70eee926a912ca2460fcbcea90078360385d26730f9c4d57f22f0a6a756b71f653432b921adbbcae403a5a7392f52a1eceb0e7669883ec890d94cd471619e6
6
+ metadata.gz: b92c89929a428136c43725e38e616e907e63ac099f6974cad676faec6b0520b5e7041f0f5585a02008b461857b52c2e1a64eabe05d64b8cb1907467073503084
7
+ data.tar.gz: 67ff54f46b5385216f38ccc61812add02cfc6171642e91e139af3f7090435f61d830d4112d51934e0aef108f0ea9717f864475f19a50f418960d4e7741c50b2a
@@ -14,7 +14,6 @@ module VagrantPlugins
14
14
  b.use SetName
15
15
  b.use ClearForwardedPorts
16
16
  b.use Provision
17
- b.use EnvSet, port_collision_repair: true
18
17
  b.use PrepareForwardedPortCollisionParams
19
18
  b.use HandleForwardedPortCollisions
20
19
  b.use PrepareNFSValidIds
@@ -104,7 +103,6 @@ module VagrantPlugins
104
103
 
105
104
  b1.use SetupPackageFiles
106
105
  b1.use action_halt
107
- b1.use ClearForwardedPorts
108
106
  b1.use PrepareNFSValidIds
109
107
  b1.use SyncedFolderCleanup
110
108
  b1.use Package
@@ -165,9 +163,9 @@ module VagrantPlugins
165
163
  next
166
164
  end
167
165
 
168
- b1.use EnvSet, port_collision_repair: false
169
166
  b1.use PrepareForwardedPortCollisionParams
170
167
  b1.use HandleForwardedPortCollisions
168
+ b1.use ForwardPorts
171
169
  b1.use Resume
172
170
  b1.use WaitForCommunicator, [:resuming, :running]
173
171
  end
@@ -256,6 +254,7 @@ module VagrantPlugins
256
254
  next
257
255
  end
258
256
 
257
+ b1.use ClearForwardedPorts
259
258
  b1.use Suspend
260
259
  end
261
260
  end
@@ -48,9 +48,9 @@ module VagrantPlugins
48
48
  def register_template
49
49
  if !@env[:machine].provider.driver.read_vms_paths.has_key?(@template_path)
50
50
  @logger.info("Register the box template: '#{@template_path}'")
51
- # We should also regenerate 'SourceVmUuid' to make sure that
52
- # SMBIOS UUID is unique [GH-113]
53
- @env[:machine].provider.driver.register(@template_path, regen_src_uuid=true)
51
+ regen_uuid = @env[:machine].provider_config.regen_box_uuid
52
+
53
+ @env[:machine].provider.driver.register(@template_path, regen_uuid)
54
54
  end
55
55
 
56
56
  # Return the uuid of registered template
@@ -17,6 +17,10 @@ module VagrantPlugins
17
17
  env[:port_collision_extra_in_use] =
18
18
  env[:machine].provider.driver.read_used_ports
19
19
 
20
+ # We can always repair the collision because port forwarding
21
+ # are configured globally, not per each VM.
22
+ env[:port_collision_repair] = true
23
+
20
24
  # Build the remap for any existing collision detections
21
25
  remap = {}
22
26
  env[:port_collision_remap] = remap
@@ -8,9 +8,9 @@ module VagrantPlugins
8
8
  attr_accessor :optimize_power_consumption
9
9
  attr_accessor :name
10
10
  attr_reader :network_adapters
11
+ attr_accessor :regen_box_uuid
11
12
  attr_accessor :update_guest_tools
12
13
 
13
-
14
14
  # Compatibility with virtualbox provider's syntax
15
15
  alias :check_guest_additions= :check_guest_tools=
16
16
 
@@ -22,6 +22,7 @@ module VagrantPlugins
22
22
  @network_adapters = {}
23
23
  @name = UNSET_VALUE
24
24
  @optimize_power_consumption = UNSET_VALUE
25
+ @regen_box_uuid = UNSET_VALUE
25
26
  @update_guest_tools = UNSET_VALUE
26
27
 
27
28
  network_adapter(0, :shared)
@@ -73,6 +74,8 @@ module VagrantPlugins
73
74
 
74
75
  @name = nil if @name == UNSET_VALUE
75
76
 
77
+ @regen_box_uuid = true if @regen_box_uuid == UNSET_VALUE
78
+
76
79
  if @update_guest_tools == UNSET_VALUE
77
80
  @update_guest_tools = false
78
81
  end
@@ -187,8 +187,9 @@ module VagrantPlugins
187
187
  # Registers the virtual machine
188
188
  #
189
189
  # @param [String] pvm_file Path to the machine image (*.pvm)
190
- # @param [Boolean] regen_src_uuid Regenerate SourceVmUuid to avoid
191
- # SMBIOS UUID collision
190
+ # @param [Boolean] regen_src_uuid Regenerate 'SourceVmUuid' to avoid
191
+ # SMBIOS UUID collision, or let it unchanged to keep activation status
192
+ # for Windows-based guests [GH-113]
192
193
  def register(pvm_file, regen_src_uuid)
193
194
  end
194
195
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = "1.2.0.rc1"
3
+ VERSION = "1.2.0.rc2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-parallels
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc1
4
+ version: 1.2.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Zholobov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-08 00:00:00.000000000 Z
12
+ date: 2014-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler