vagrant-vmware-esxi 2.5.4 → 2.5.5
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 +4 -4
- data/Gemfile +0 -12
- data/README.md +1 -0
- data/lib/vagrant-vmware-esxi/action/package.rb +6 -1
- data/lib/vagrant-vmware-esxi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7256168bd0cf7cb88793f16f81f74b5cb37c6ddabb86df89310b26d14949464
|
|
4
|
+
data.tar.gz: a0a73b5c17da28bcae6a40117f76f495c9067d25b9dc5a4f30e3593176223a0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 447cee5ac8e94a97b288b75863686de0e823cd692c8871150cef3c5685bea80d18f21c92278ca49c93efda75df9d96dc2eda5b30e5438fdb148a6e2279fcc119
|
|
7
|
+
data.tar.gz: 839e24e533768323b505e3b303e415fd3a47b073a691f102a2fff1e7d619d91db5b0f6b2e841178effce471226eaffcf08c7fb9c7c88775c0d48c917b0211cca
|
data/Gemfile
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
#source 'https://rubygems.org'
|
|
2
|
-
#
|
|
3
|
-
#group :development do
|
|
4
|
-
# #gem 'vagrant', git: 'https://github.com/hashicorp/vagrant.git', :branch => 'v2.2.3'
|
|
5
|
-
# gem 'vagrant', git: 'https://github.com/hashicorp/vagrant.git'
|
|
6
|
-
#end
|
|
7
|
-
#
|
|
8
|
-
#group :plugins do
|
|
9
|
-
# #gemspec
|
|
10
|
-
# gem "vagrant-vmware-esxi", path: "."
|
|
11
|
-
#end
|
|
12
|
-
|
|
13
1
|
source "https://rubygems.org"
|
|
14
2
|
|
|
15
3
|
group :development do
|
data/README.md
CHANGED
|
@@ -295,6 +295,7 @@ I work very hard to produce a stable, well documented product. I appreciate any
|
|
|
295
295
|
|
|
296
296
|
Version History
|
|
297
297
|
---------------
|
|
298
|
+
* 2.5.5 Fix vagrant package for Windows (mingw)
|
|
298
299
|
* 2.5.4 Add support for esxi 7.0.2 new os types.
|
|
299
300
|
* 2.5.3 Fix, Add hw_versions and GuestOS vmkernel7
|
|
300
301
|
* 2.5.2 Fix, snapshot restore will execute regardless of current state.
|
|
@@ -56,11 +56,15 @@ module VagrantPlugins
|
|
|
56
56
|
" local_allow_overwrite='True' in Vagrantfile for force."
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
is_mingw = Gem::Platform.local.os == "mingw32"
|
|
60
|
+
|
|
59
61
|
# Find a tar/bsdtar
|
|
60
62
|
if system 'tar --version >/dev/null 2>&1'
|
|
61
63
|
tar_cmd = 'tar'
|
|
62
64
|
elsif system 'bsdtar --version >/dev/null 2>&1'
|
|
63
65
|
tar_cmd = 'bsdtar'
|
|
66
|
+
elsif is_mingw && system('tar --version > nul 2>&1')
|
|
67
|
+
tar_cmd = 'tar'
|
|
64
68
|
else
|
|
65
69
|
raise Errors::ESXiConfigError,
|
|
66
70
|
message: 'unable to find tar in your path.'
|
|
@@ -120,7 +124,8 @@ module VagrantPlugins
|
|
|
120
124
|
end
|
|
121
125
|
|
|
122
126
|
env[:ui].info("tarring #{boxname}.box")
|
|
123
|
-
|
|
127
|
+
combinator_string = is_mingw ? "&&" : ";"
|
|
128
|
+
unless system "cd #{tmpdir}/#{boxname} #{combinator_string} #{tar_cmd} cvf ../../#{boxname}.box *"
|
|
124
129
|
raise Errors::GeneralError,
|
|
125
130
|
message: 'tar command failed.'
|
|
126
131
|
end
|