belt 0.3.33 → 0.3.34
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/belt/cli/dns_command.rb +7 -0
- data/lib/belt/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: 01f5648c9621e3feace4ceafc8f6683575c9f52a17ec59c60c2eb1f9202f3f65
|
|
4
|
+
data.tar.gz: 86a781e22c010419b21f09d00115db32ad9c13f40bf5be02a391ae146fd70ec6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f3aca3d970a65d95fc9028b9eb7bb8117043e7c00fffaf481fbe3bf80d4a603c501f6321e438934c6cc8622e897c84034657fb01f6cc9c8ac2c3ae9b7604404
|
|
7
|
+
data.tar.gz: 50f18ff13e6cb0767a57bc7af4b1963de6bd4681fdd2030db8e5ed34872bc031bf4761bf23065a27e7115bb6f405ece4c0078a30dd86ba17b077cb3b0d6eb8cd
|
data/lib/belt/cli/dns_command.rb
CHANGED
|
@@ -167,12 +167,15 @@ module Belt
|
|
|
167
167
|
|
|
168
168
|
if auto
|
|
169
169
|
run_terraform('apply', env_config, 'tfplan')
|
|
170
|
+
cleanup_plan
|
|
170
171
|
else
|
|
171
172
|
print "\nApply this plan? [y/N] "
|
|
172
173
|
answer = $stdin.gets&.strip&.downcase
|
|
173
174
|
if %w[y yes].include?(answer)
|
|
174
175
|
run_terraform('apply', env_config, 'tfplan')
|
|
176
|
+
cleanup_plan
|
|
175
177
|
else
|
|
178
|
+
cleanup_plan
|
|
176
179
|
puts 'Aborted.'
|
|
177
180
|
exit 1
|
|
178
181
|
end
|
|
@@ -180,6 +183,10 @@ module Belt
|
|
|
180
183
|
end
|
|
181
184
|
end
|
|
182
185
|
|
|
186
|
+
def cleanup_plan
|
|
187
|
+
FileUtils.rm_f('tfplan')
|
|
188
|
+
end
|
|
189
|
+
|
|
183
190
|
# --- Add Environment ---
|
|
184
191
|
def add_environment(args)
|
|
185
192
|
env_name = args.shift
|
data/lib/belt/version.rb
CHANGED