vagrant-persistent-storage 0.0.8 → 0.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f0cadc2e199f85a3aaa80e3228bc17e182ec7cf
|
4
|
+
data.tar.gz: 6bc2b385719a8ab503ed39528203d9501e80ee9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 452eff85038492ec9e3db66783757b7af7985147fe426493e66267323ffc8f7e6d4c87695fab7dd19232f3afd27329d023c39b4a3b64576cbc6f9cd06fb5ea8f
|
7
|
+
data.tar.gz: 06b67160d90d72fe803a6b03c4308db14f2ab58bfd515e7a1cc46fef8f1da3b20f8209a59fd997feafad9c379c87e41223c0265c12b753ecc846296a180c6b4a
|
@@ -24,12 +24,13 @@ module VagrantPlugins
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def detach_storage(location)
|
27
|
-
|
27
|
+
persistent_storage = read_persistent_storage()
|
28
|
+
if location and persistent_storage != "none" and identical_files(persistent_storage, location)
|
28
29
|
execute("storageattach", @uuid, "--storagectl", get_sata_controller_name, "--port", "1", "--device", "0", "--type", "hdd", "--medium", "none")
|
29
30
|
end
|
30
31
|
end
|
31
32
|
|
32
|
-
def read_persistent_storage(
|
33
|
+
def read_persistent_storage()
|
33
34
|
## Ensure previous operations are complete - bad practise yes, not sure how to avoid this:
|
34
35
|
sleep 3
|
35
36
|
info = execute("showvminfo", @uuid, "--machinereadable", :retryable => true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-persistent-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Kusnier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|