nexoform 0.1.8 → 0.1.10

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
  SHA256:
3
- metadata.gz: 2659d47f10a0ebe532021e68c8e83c905771176a1c87240ea310792db4dc902f
4
- data.tar.gz: 4ace7063caf89a7cedfc5934e963901eecc699ce16ea7beefb40fcb31962872d
3
+ metadata.gz: 2ef74ce1e2fdaf991e72a6e3a30301d9373c011be14e98f271cfe75d4dadd087
4
+ data.tar.gz: '00822893bc5cb1c6a2862a4707660c6bfb610a15860c9c1a30f3c9f29a136016'
5
5
  SHA512:
6
- metadata.gz: 6267eab03be1e1501e6e71cf54d304652ba89138c8bd7a4d86d3fd8e1d7ff6359818752c4ee645483ba725c4c34d0596bdaf678427de3264ad2becaec84295c2
7
- data.tar.gz: e3459b60863168ad23387b4986c63a65eae98dcd1053adbf7734c928d825a760c9997faea75800a1b8a9a644b7d4047a225109ebb1614e5702e1d14f0de09a0b
6
+ metadata.gz: 0ce7da8772d6d1abd14b70639e03324a9e4721989a24230a91e2d051ad0d6a534d34fb5d69b45fa6d6edb8b4ab08a5608739d8dd833aebe39c5c93a0dd3ef199
7
+ data.tar.gz: 2a1c60be4c2c9d3e569fc4cd7b1100ed83bea9a80699dece19a4b6e22da8c59bb5f5a80635e4083e2f2e7c803b51208b6831ec2a90467116d3da93780db51bbc
@@ -357,15 +357,16 @@ class NexoformBin < Thor
357
357
 
358
358
  def terraform_apply(options)
359
359
  varfile = apply_with_plan_file?(options) ? '' : var_file_arg(options)
360
-
361
- puts "[DEBUG]: terraform_apply - options: '#{options}'" if options['debug']
362
- puts "[DEBUG]: terraform_apply - apply_with_plan_file?: '#{apply_with_plan_file?(options)}'" if options['debug']
363
- puts "[DEBUG]: terraform_apply - options[:plan]: '#{options[:plan]}'" if options['debug']
364
-
365
360
  planfile = apply_with_plan_file?(options) ? options[:plan] : ''
366
361
  yes = options[:assume_yes] ? "yes 'yes' | " : ''
367
- puts "[DEBUG]: terraform_apply - yes value: '#{yes}'" if options['debug']
368
- puts "[DEBUG]: terraform_apply - planfile value: '#{planfile}'" if options['debug']
362
+
363
+ if options['debug']
364
+ puts "[DEBUG]: terraform_apply - options: '#{options}'"
365
+ puts "[DEBUG]: terraform_apply - varfile value (if specifying plan this should be empty string): '#{varfile}'"
366
+ puts "[DEBUG]: terraform_apply - yes value: '#{yes}'"
367
+ puts "[DEBUG]: terraform_apply - planfile value: '#{planfile}'"
368
+ end
369
+
369
370
  "#{yes}terraform apply #{varfile} #{planfile}"
370
371
  end
371
372
 
@@ -43,9 +43,9 @@ module Nexoform
43
43
  file: dev.tfplan # file the plan is saved to automatically
44
44
  overwrite: yes # overwrite existing file. could be: yes | no | ask
45
45
  state: # configuration for state management s3 backend
46
+ region: us-east-1 # Region where the BUCKET specified here lives, not the region you are provisioning to
46
47
  bucket: #{project_name}-terraform-state
47
48
  key: dev.tfstate
48
- region: us-east-1
49
49
  staging: # name of environment
50
50
  varFile: staging.tfvars # terraform var-file to use
51
51
  plan: # optional block. Avoids getting prompted
@@ -53,9 +53,9 @@ module Nexoform
53
53
  file: staging.tfplan # file the plan is saved to automatically
54
54
  overwrite: yes # overwrite existing file. could be: yes | no | ask
55
55
  state: # configuration for state management s3 backend
56
+ region: us-east-1 # Region where the BUCKET specified here lives, not the region you are provisioning to
56
57
  bucket: #{project_name}-terraform-state
57
58
  key: staging.tfstate
58
- region: us-east-1
59
59
  prod: # name of environment
60
60
  varFile: prod.tfvars # terraform var-file to use
61
61
  plan: # optional block. Avoids getting prompted
@@ -63,9 +63,9 @@ module Nexoform
63
63
  file: prod.tfplan # file the plan is saved to automatically
64
64
  overwrite: yes # overwrite existing file. could be: yes | no | ask
65
65
  state: # configuration for state management s3 backend
66
+ region: us-east-1 # Region where the BUCKET specified here lives, not the region you are provisioning to
66
67
  bucket: #{project_name}-terraform-state
67
68
  key: prod.tfstate
68
- region: us-east-1
69
69
  ).split("\n").map { |s| s.sub(' ' * 8, '') }.join("\n")
70
70
  end
71
71
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  module Nexoform
4
4
  def self.version
5
- '0.1.8'
5
+ '0.1.10'
6
6
  end
7
7
 
8
8
  def self.date
9
- '2019-09-27'
9
+ '2019-10-09'
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexoform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport