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 +4 -4
- data/bin/nexoform +8 -7
- data/lib/nexoform/config.rb +3 -3
- data/lib/nexoform/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ef74ce1e2fdaf991e72a6e3a30301d9373c011be14e98f271cfe75d4dadd087
|
4
|
+
data.tar.gz: '00822893bc5cb1c6a2862a4707660c6bfb610a15860c9c1a30f3c9f29a136016'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ce7da8772d6d1abd14b70639e03324a9e4721989a24230a91e2d051ad0d6a534d34fb5d69b45fa6d6edb8b4ab08a5608739d8dd833aebe39c5c93a0dd3ef199
|
7
|
+
data.tar.gz: 2a1c60be4c2c9d3e569fc4cd7b1100ed83bea9a80699dece19a4b6e22da8c59bb5f5a80635e4083e2f2e7c803b51208b6831ec2a90467116d3da93780db51bbc
|
data/bin/nexoform
CHANGED
@@ -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
|
-
|
368
|
-
|
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
|
|
data/lib/nexoform/config.rb
CHANGED
@@ -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
|
|
data/lib/nexoform/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2019-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|