vagrant-persistent-storage 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-persistent-storage/plugin.rb +0 -1
- data/lib/vagrant-persistent-storage/providers/virtualbox/driver/base.rb +12 -1
- data/lib/vagrant-persistent-storage/version.rb +1 -1
- metadata +2 -3
- data/lib/vagrant-persistent-storage/providers/virtualbox/driver/version_5_0.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb7e7788d7c9160a18ceca9bff73497aa9f41049
|
4
|
+
data.tar.gz: a54e71dd81696b13508401f8902cf5e94815f2b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8db5d5a316cad972099701e4e9267292784c50d280ac476d8f7860563ba11bf0008b33cd3f73a7d13773381957531242433df5a1f53a2c07bb86c018a3b5c087
|
7
|
+
data.tar.gz: a5ee5c3bbfe199c340ef7a7b2c522ec74e9c697543c850e36c27b9c222e3182128c49ef1bdbba008f4973ceb010339213c5ecb20529fe89bcc7bbfd19e82c4ec
|
@@ -9,7 +9,6 @@ module VagrantPlugins
|
|
9
9
|
require_relative "action"
|
10
10
|
require_relative "providers/virtualbox/driver/base"
|
11
11
|
require_relative "providers/virtualbox/driver/meta"
|
12
|
-
require_relative "providers/virtualbox/driver/version_5_0"
|
13
12
|
|
14
13
|
name "persistent_storage"
|
15
14
|
description <<-DESC
|
@@ -20,7 +20,18 @@ module VagrantPlugins
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def attach_storage(location)
|
23
|
-
|
23
|
+
controller_name = get_controller_name
|
24
|
+
if controller_name.nil?
|
25
|
+
controller_name = "SATA Controller"
|
26
|
+
end
|
27
|
+
|
28
|
+
if controller_name == "IDE Controller"
|
29
|
+
execute("storageattach", @uuid, "--storagectl", get_controller_name, "--port", "1", "--device", "0", "--type", "hdd", "--medium", "#{location}")
|
30
|
+
else
|
31
|
+
execute("storageattach", @uuid, "--storagectl", get_controller_name, "--port", "1", "--device", "0", "--type", "hdd", "--medium", "#{location}", "--hotpluggable", "on")
|
32
|
+
end
|
33
|
+
|
34
|
+
|
24
35
|
end
|
25
36
|
|
26
37
|
def detach_storage(location)
|
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.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Kusnier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -63,7 +63,6 @@ files:
|
|
63
63
|
- lib/vagrant-persistent-storage/plugin.rb
|
64
64
|
- lib/vagrant-persistent-storage/providers/virtualbox/driver/base.rb
|
65
65
|
- lib/vagrant-persistent-storage/providers/virtualbox/driver/meta.rb
|
66
|
-
- lib/vagrant-persistent-storage/providers/virtualbox/driver/version_5_0.rb
|
67
66
|
- lib/vagrant-persistent-storage/version.rb
|
68
67
|
- locales/en.yml
|
69
68
|
- sample-vm/.gitignore
|
@@ -1,11 +0,0 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module ProviderVirtualBox
|
3
|
-
module Driver
|
4
|
-
class Version_5_0
|
5
|
-
def attach_storage(location)
|
6
|
-
execute("storageattach", @uuid, "--storagectl", get_controller_name, "--port", "1", "--device", "0", "--type", "hdd", "--medium", "#{location}", "--hotpluggable", "on")
|
7
|
-
end
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|