vagrant-multiprovider-snap 0.0.7 → 0.0.8

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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.8 (January 21, 2014)
2
+
3
+ - Fixed bug in handling of multiple snapshots on both providers.
4
+
1
5
  ## 0.0.7 (October 23, 2013)
2
6
 
3
7
  - Fixed bug preventing rollback on aborted VirtualBox VMs.
data/README.md CHANGED
@@ -76,3 +76,13 @@ are handled.
76
76
  License
77
77
  -------
78
78
  vagrant-multiprovider-snap is licensed under the MIT license.
79
+
80
+
81
+ Thanks
82
+ ------
83
+
84
+ Many thanks to the following people for contributing to vagrant-multiprovider-snap:
85
+
86
+ - Reid Vandewiele
87
+ - James Sweeny
88
+ - Steven De Coeyer
@@ -16,7 +16,7 @@ module VagrantPlugins
16
16
  halt
17
17
  sleep 2 # race condition on locked VMs otherwise?
18
18
  end
19
- execute("snapshot", @uuid, "restore", snapshot_list.first)
19
+ execute("snapshot", @uuid, "restore", snapshot_list.last)
20
20
  start(bootmode)
21
21
  end
22
22
 
@@ -24,11 +24,11 @@ module VagrantPlugins
24
24
  info = execute("showvminfo", @uuid, "--machinereadable")
25
25
  snapshots = []
26
26
  info.split("\n").each do |line|
27
- if line =~ /^SnapshotName="(vagrant-snap-.+?)"$/
27
+ if line =~ /^SnapshotName[^=]*="(vagrant-snap-.+?)"$/
28
28
  snapshots << $1.to_s
29
29
  end
30
30
  end
31
- snapshots
31
+ snapshots.sort
32
32
  end
33
33
 
34
34
  def has_snapshot?
@@ -11,7 +11,7 @@ module HashiCorp
11
11
  end
12
12
 
13
13
  def snapshot_rollback(bootmode)
14
- vmrun("revertToSnapshot", "#{vmx_path}", snapshot_list.first)
14
+ vmrun("revertToSnapshot", "#{vmx_path}", snapshot_list.last)
15
15
  start
16
16
  end
17
17
 
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Snap
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-multiprovider-snap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
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: 2013-10-23 00:00:00.000000000 Z
12
+ date: 2014-01-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Multi-provider snapshots for Vagrant
15
15
  email:
@@ -69,3 +69,4 @@ signing_key:
69
69
  specification_version: 3
70
70
  summary: Multi-provider snapshots for Vagrant
71
71
  test_files: []
72
+ has_rdoc: