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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f87b6dda2b40ad1bc2f3e07c6e84504ac52852e0
4
- data.tar.gz: b8e3ecfeb5615c480e54fec8ab45cae86caa3fcd
3
+ metadata.gz: eb7e7788d7c9160a18ceca9bff73497aa9f41049
4
+ data.tar.gz: a54e71dd81696b13508401f8902cf5e94815f2b9
5
5
  SHA512:
6
- metadata.gz: e676cb3efb1dc2b6a37a8772aa8a38045fdf19029f97ea898a6751e6b09974945ccd676cc01d41a85c377c6050ea29e4f0ddf0ede807ee1126c5b7c3abe38995
7
- data.tar.gz: b43b099bd13a83e00cdd2fe5c089505cca4d867c9c8c031803056abc4feb30b88fbfcb53221fc9dcdd983e476f34f1dc9f0a132504dd5e34b8e8dcf87794adde
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
- execute("storageattach", @uuid, "--storagectl", get_controller_name, "--port", "1", "--device", "0", "--type", "hdd", "--medium", "#{location}")
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)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module PersistentStorage
3
- VERSION = "0.0.18"
3
+ VERSION = "0.0.19"
4
4
  end
5
5
  end
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.18
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-23 00:00:00.000000000 Z
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