vagrant-commit 0.6.1 → 0.6.2
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/lib/vagrant-commit/command.rb +4 -0
- data/lib/vagrant-commit/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: b3eb036a6543f9c1e507d42fa617c38e800dc39f540ab1d4b67bfccfeadd3678
|
4
|
+
data.tar.gz: '08a2191cb407e4c6b2e5efe7c6f0152929c4c29b6b4d2d43d158b311267a39dd'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21ca5f113431fee0948d954b47f8fe1b8fe5e8e2a101d5c125252ad8ac40e693f394d7c3d4a1743a552f41e36ac29cb2bfd2d4d7dd64d468f78b79b716ac1612
|
7
|
+
data.tar.gz: fad492002deb493cd051be5e3992a66def10c79a7e4d766121944b52e0aa74c0d3c2205c2996ab42a26b3a75a911864fb13bc92cb743d3b147ac766e8bb7fe25
|
@@ -134,6 +134,10 @@ module Vagrant
|
|
134
134
|
root_dir = @env.boxes_path
|
135
135
|
version = "0"
|
136
136
|
new_box_dir = root_dir.join(target_boxname).join(version).join(provider.to_s)
|
137
|
+
cont = @env.ui.ask("Box #{target_boxname} exists. Recreate? [y/n]")
|
138
|
+
if cont.strip.downcase != "y"
|
139
|
+
return 1
|
140
|
+
end
|
137
141
|
new_box_dir.mkpath
|
138
142
|
new_box_dir.join("metadata.json").open("w") do |f|
|
139
143
|
f.write(metadata_json())
|