kitchen-vagrant 1.3.6 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/driver/vagrant.rb +4 -1
- data/lib/kitchen/driver/vagrant_version.rb +1 -1
- data/templates/Vagrantfile.erb +7 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee03c75946082e46fbd75e0ca314833422a79d532744244ef9b550d2c830d45e
|
4
|
+
data.tar.gz: 30c78abeb4b513c5eee618ac2cbd12257ebfce076b8dbb8968ef6513d34dc4ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 301e23cdd0aebd331f2ab3fa6a46dd2f0a636cab948df3edb05753f938c27abbec33f73a7a646d6d0da040de7b28b6eebd5174a4c3116d37f7dd53595a9a56d7
|
7
|
+
data.tar.gz: 64038d07aec4ea56ac4484f72ab5758406aed953d24ec86e6e1b4ea13a5179442412e799721f5e9999cabc6224d38b0846cd041c06493e1f3cd227458b4fb193
|
@@ -92,8 +92,11 @@ module Kitchen
|
|
92
92
|
driver.windows_os? ? "/omnibus/cache" : "/tmp/omnibus/cache"
|
93
93
|
end
|
94
94
|
|
95
|
+
# for use with vagrant on WSL
|
96
|
+
user_home = ENV["VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH"].nil? ? "~" : ENV["VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH"]
|
97
|
+
|
95
98
|
default_config :kitchen_cache_directory,
|
96
|
-
File.expand_path("
|
99
|
+
File.expand_path("#{user_home}/.kitchen/cache")
|
97
100
|
|
98
101
|
default_config :cachier, nil
|
99
102
|
|
data/templates/Vagrantfile.erb
CHANGED
@@ -94,7 +94,7 @@ Vagrant.configure("2") do |c|
|
|
94
94
|
when "virtualbox" %>
|
95
95
|
p.name = "kitchen-<%= File.basename(config[:kitchen_root]) %>-<%= instance.name %>"
|
96
96
|
<% end %>
|
97
|
-
|
97
|
+
|
98
98
|
<% case config[:provider]
|
99
99
|
when "virtualbox", /^vmware_/
|
100
100
|
if config[:gui] == true || config[:gui] == false %>
|
@@ -114,6 +114,11 @@ Vagrant.configure("2") do |c|
|
|
114
114
|
<% end
|
115
115
|
end %>
|
116
116
|
|
117
|
+
<% if config[:provider] == "virtualbox" &&
|
118
|
+
!config[:customize].has_key?(:audio) %>
|
119
|
+
p.customize ["modifyvm", :id, "--audio", "none"]
|
120
|
+
<% end %>
|
121
|
+
|
117
122
|
<% config[:customize].each do |key, value| %>
|
118
123
|
<% case config[:provider]
|
119
124
|
when "libvirt" %>
|
@@ -176,7 +181,7 @@ Vagrant.configure("2") do |c|
|
|
176
181
|
<% options = [] %>
|
177
182
|
<% item.each do |storage_option_key, storage_option_value|
|
178
183
|
options << "\"--#{storage_option_key}\""
|
179
|
-
if storage_option_value.
|
184
|
+
if storage_option_value.kind_of? Integer
|
180
185
|
options << storage_option_value
|
181
186
|
else
|
182
187
|
options << "\"#{storage_option_value}\""
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-vagrant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Nichol
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -126,8 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
|
130
|
-
rubygems_version: 2.7.7
|
129
|
+
rubygems_version: 3.0.2
|
131
130
|
signing_key:
|
132
131
|
specification_version: 4
|
133
132
|
summary: Kitchen::Driver::Vagrant - A Vagrant Driver for Test Kitchen.
|