nexoform 0.0.3 → 0.0.4
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/bin/nexoform +9 -4
- data/lib/nexoform/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 527e2522bbf68101786f8725071d3a487c56a9e6
|
4
|
+
data.tar.gz: c02f1db6c8fb2168527d746716ac25caff9bed04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f53ea793ef7f81c3c559ed14a6f01458fbbc9c5e8cc72a6de03c0dda7b81dd7c6b580267a541767629ca197da4f6fa6fb93bd7ca3440a50fc4f54ef429cc655
|
7
|
+
data.tar.gz: '0084b1e369b6e7fc099f0d945d1f061d53a39ae2005de97bdd0c42b201f3439c81f376fb32fde1ac392ee11d557bbe57d24d8c01dc62cda65bc2b9bd477c4bba'
|
data/bin/nexoform
CHANGED
@@ -31,6 +31,7 @@ end
|
|
31
31
|
class NexoformBin < Thor
|
32
32
|
class_option :environment, type: :string, aliases: 'e', required: false
|
33
33
|
class_option :assume_yes, type: :boolean, aliases: 'y', default: false
|
34
|
+
class_option :refresh, type: :boolean, aliases: 'r', default: true
|
34
35
|
|
35
36
|
desc 'plan', 'Print out changes that will be made on next apply (runs a terraform plan)'
|
36
37
|
long_desc <<-LONGDESC
|
@@ -241,10 +242,14 @@ class NexoformBin < Thor
|
|
241
242
|
end
|
242
243
|
|
243
244
|
def run_refresh(options)
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
245
|
+
if options[:refresh]
|
246
|
+
print_next_color '* Refreshing terraform state against actual state of ' \
|
247
|
+
'resources for environment: '
|
248
|
+
print_next_color env(options)
|
249
|
+
execute(terraform_refresh(options))
|
250
|
+
else
|
251
|
+
puts_next_color '* Skipping refresh at user option'
|
252
|
+
end
|
248
253
|
end
|
249
254
|
|
250
255
|
def needs_prompt_for_plan_file?(options)
|
data/lib/nexoform/version.rb
CHANGED