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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a26c515ae9265e5f90e0add34928c19fd82f08ac
4
- data.tar.gz: a5c0c33edbb0a36e36bbee8e1a02784192ec2346
3
+ metadata.gz: 527e2522bbf68101786f8725071d3a487c56a9e6
4
+ data.tar.gz: c02f1db6c8fb2168527d746716ac25caff9bed04
5
5
  SHA512:
6
- metadata.gz: 47f15f1b152f7ab98a87628a2f5ea67da20b9aba5ac7d1bdd5d8e7aaa37f69fc30d56fc9fd38437789b8ea17fe3b4c6a873a94d0f84fa2b84def6dae233a9c07
7
- data.tar.gz: 3b861e5529ba14e7e17386ac4644bd422251ba6180138a2ecff548e18c4ae46f0574958ff68963916c9443b5602f9f37fae1cdbd860c32a1f5b2ee40fbcae7e1
6
+ metadata.gz: 4f53ea793ef7f81c3c559ed14a6f01458fbbc9c5e8cc72a6de03c0dda7b81dd7c6b580267a541767629ca197da4f6fa6fb93bd7ca3440a50fc4f54ef429cc655
7
+ data.tar.gz: '0084b1e369b6e7fc099f0d945d1f061d53a39ae2005de97bdd0c42b201f3439c81f376fb32fde1ac392ee11d557bbe57d24d8c01dc62cda65bc2b9bd477c4bba'
@@ -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
- print_next_color 'Refreshing terraform state against actual state of ' \
245
- 'resources for environment: '
246
- print_next_color env(options)
247
- execute(terraform_refresh(options))
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)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Nexoform
4
4
  def self.version
5
- '0.0.3'
5
+ '0.0.4'
6
6
  end
7
7
 
8
8
  def self.date
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexoform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Porter