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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee92d49f3d5e73344418c1cb8d3540785af402102e83a92736420b81d7fdc0de
4
- data.tar.gz: 325004bfa3ad692a57a54cc26643898cb969291d650d1688e9d1761e3df8a4b0
3
+ metadata.gz: ee03c75946082e46fbd75e0ca314833422a79d532744244ef9b550d2c830d45e
4
+ data.tar.gz: 30c78abeb4b513c5eee618ac2cbd12257ebfce076b8dbb8968ef6513d34dc4ca
5
5
  SHA512:
6
- metadata.gz: 74609777bd6d7c36d5d682ea82831affc691ed4e9b87ba1a63ef5a08c09e9a2f71228e0914fcf8e2b47e8af9ab9dfb68e87fd8c130edc3e9cfee1251fb461cfc
7
- data.tar.gz: 3086d110f043047f9e50ebae55317f4d1ce3c9f4dca9b2902c8053ba16a3339a4b2cc3bf410d796b5eeef3d8e836719a9f287f468f4a911bb67324c5bd03c06a
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("~/.kitchen/cache")
99
+ File.expand_path("#{user_home}/.kitchen/cache")
97
100
 
98
101
  default_config :cachier, nil
99
102
 
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Vagrant Kitchen driver
24
- VAGRANT_VERSION = "1.3.6".freeze
24
+ VAGRANT_VERSION = "1.4.0".freeze
25
25
  end
26
26
  end
@@ -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.instance_of? Fixnum
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.3.6
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: 2018-10-26 00:00:00.000000000 Z
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
- rubyforge_project:
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.