vagrant-vmware-desktop 3.0.2 → 3.0.3

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
  SHA256:
3
- metadata.gz: ba545200e0b56b039bbb5f2e562b6b95bc0101cfdfc2b1b8bb7112c03d4bc163
4
- data.tar.gz: 2f06179843c86955a7eb81170090daa184b2fb54aedf96bd13c408366fd2c819
3
+ metadata.gz: a3275e668f048933faaa0b580297af432a0d64c88c0f810ba268cf010b5cf5fe
4
+ data.tar.gz: 72947322a3dbd3acd97879175f958b820c93df2bcbc683006888346c75c4262f
5
5
  SHA512:
6
- metadata.gz: b3c33c80806c0519d5f104456efe882e2d8d81d3392b1c36b9e3c23d4bd3344779a629c0f03e3654406af12ac7e9db0d00803253e7d2f4373bd63e8c493811a0
7
- data.tar.gz: 3118c1fad9e990dd7fc81d0ebf2f7be35c5ac8dd1afe6e550c060488495e71d820b4a916a56ca2235e468e76f8d07444c6200015109bb5af157cd9270140072f
6
+ metadata.gz: c4a440f8e4e435ae93631aec1f91991079ac0247ed8506f009c915df69cf6c99fc9d11cfcb3d7d51fe0cd4de27f3e2c86c6a3957442cf7234e2b569a3523fcdc
7
+ data.tar.gz: ede75391f769645cc913e409042bd80c92718ec54f402af530974561f6bae90e9277152b9a8426df30d89d395e8171d3f93afe0278291c0b1299080f7d0b544a
@@ -186,17 +186,22 @@ module HashiCorp
186
186
  def product_type
187
187
  return @product_type if @product_type
188
188
 
189
- # If the license is standard, the type is player
190
- if standard?
191
- return @product_type = "player"
192
- end
193
-
189
+ @logger.debug("determining product type")
194
190
  case @product_name.downcase
195
191
  when "workstation"
196
- @product_type = "ws"
192
+ # If the license is standard, the type is player
193
+ if standard?
194
+ @logger.debug("workstation product with standard license: player")
195
+ @product_type = "player"
196
+ else
197
+ @logger.debug("workstation product with professional license: ws")
198
+ @product_type = "ws"
199
+ end
197
200
  when "fusion"
201
+ @logger.debug("fusion product: fusion")
198
202
  @product_type = "fusion"
199
203
  else
204
+ @logger.debug("unknown product (#{@product_name}), defaulting: player")
200
205
  @product_type = "player"
201
206
  end
202
207
 
@@ -1254,7 +1259,7 @@ module HashiCorp
1254
1259
  command_opts = { :notify => [:stdout, :stderr] }
1255
1260
  command_opts[:timeout] = opts[:timeout] if opts[:timeout]
1256
1261
 
1257
- command = command.dup
1262
+ command = command.dup.map(&:to_s)
1258
1263
  command << command_opts
1259
1264
 
1260
1265
 
@@ -1264,7 +1269,7 @@ module HashiCorp
1264
1269
  if VagrantVMwareDesktop.wsl?
1265
1270
  r_path = VagrantVMwareDesktop.windows_to_wsl_path(r_path)
1266
1271
  end
1267
- result = Vagrant::Util::Subprocess.execute(r_path, *command.map(&:to_s))
1272
+ result = Vagrant::Util::Subprocess.execute(r_path, *command)
1268
1273
  if result.exit_code != 0
1269
1274
  raise Errors::VMExecError,
1270
1275
  :executable => executable.to_s,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vmware-desktop
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vagrant Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-04 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Enables Vagrant to power VMware Workstation/Fusion machines.
14
14
  email: vagrant@hashicorp.com