ruby-terraform 0.12.1 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 129d77db3819c8b3142acded074f57c6e4826a6d
4
- data.tar.gz: fa7f922f6ba91c99969c451ef03a1729e77a4227
3
+ metadata.gz: 0fbeec4544d4c60733a6173770fa06c536ed7476
4
+ data.tar.gz: 59a40104a6f6227f6c2ff07e9876d1c98651d6c7
5
5
  SHA512:
6
- metadata.gz: 3f70816bbaa64e4592513535a64a640b0fa23bcc0cca676bcfbaf077499b6328f7890ce4896b0c326788d22e15fb445e152b2b277317ad458a475d67d40fe90c
7
- data.tar.gz: 75d635282425ed04370be1b4fff78b58868d05f6f3f4be77e0c114c87a5edcc71174b88f110b6246216c91bd4b691c28e1ca5ea885b1a333183b53e5ae483526
6
+ metadata.gz: 86894496b91742a7e2f85b581fe82e98d152ce51953ca9fa6ba096a4fba531d38bdaa9a8b037a85a34368efe67809976fa73198cb36c98ed030b0d3feb321fb8
7
+ data.tar.gz: fd5d003b89d7515766e3af53ff33d873371db4888d7b6cef6dc6a9a7413fc179b9367ecd10739a38e6bf3d5ab96b8b19f627c24664da52aa04c108f11963d926
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (0.12.1)
4
+ ruby-terraform (0.13.0)
5
5
  lino (~> 1.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -128,7 +128,10 @@ RubyTerraform::Commands::Plan.new.execute(
128
128
  The plan command supports the following options passed as keyword arguments:
129
129
  * `directory`: the directory containing terraform configuration; required.
130
130
  * `vars`: a map of vars to be passed in to the terraform configuration.
131
- * `var_file`: a file holding list of variables with their values (in terraform format) to be passed to terraform.
131
+ * `var_file`: the path to a terraform var file; if both `var_file` and
132
+ `var_files` are provided, all var files will be passed to terraform.
133
+ * `var_files`: an array of paths to terraform var files; if both `var_file` and
134
+ `var_files` are provided, all var files will be passed to terraform.
132
135
  * `state`: the path to the state file in which to store state; defaults to
133
136
  terraform.tfstate in the working directory or the remote state if configured.
134
137
  * `plan`: the name of the in which to save the generated plan.
@@ -159,7 +162,10 @@ RubyTerraform::Commands::Apply.new.execute(
159
162
  The apply command supports the following options passed as keyword arguments:
160
163
  * `directory`: the directory containing terraform configuration; required.
161
164
  * `vars`: a map of vars to be passed in to the terraform configuration.
162
- * `var_file`: a file holding list of variables with their values (in terraform format) to be passed to terraform
165
+ * `var_file`: the path to a terraform var file; if both `var_file` and
166
+ `var_files` are provided, all var files will be passed to terraform.
167
+ * `var_files`: an array of paths to terraform var files; if both `var_file` and
168
+ `var_files` are provided, all var files will be passed to terraform.
163
169
  * `state`: the path to the state file in which to store state; defaults to
164
170
  terraform.tfstate in the working directory or the remote state if configured.
165
171
  * `backup`: the path to the backup file in which to store the state backup.
@@ -193,7 +199,10 @@ RubyTerraform::Commands::Destroy.new.execute(
193
199
  The destroy command supports the following options passed as keyword arguments:
194
200
  * `directory`: the directory containing terraform configuration; required.
195
201
  * `vars`: a map of vars to be passed in to the terraform configuration.
196
- * `var_file`: a file holding list of variables with their values (in terraform format) to be passed to terraform
202
+ * `var_file`: the path to a terraform var file; if both `var_file` and
203
+ `var_files` are provided, all var files will be passed to terraform.
204
+ * `var_files`: an array of paths to terraform var files; if both `var_file` and
205
+ `var_files` are provided, all var files will be passed to terraform.
197
206
  * `state`: the path to the state file containing the current state; defaults to
198
207
  terraform.tfstate in the working directory or the remote state if configured.
199
208
  * `force`: if `true`, the command destroys without prompting the user to confirm
@@ -8,6 +8,7 @@ module RubyTerraform
8
8
  directory = opts[:directory]
9
9
  vars = opts[:vars] || {}
10
10
  var_file = opts[:var_file]
11
+ var_files = opts[:var_files] || []
11
12
  state = opts[:state]
12
13
  input = opts[:input]
13
14
  auto_approve = opts[:auto_approve]
@@ -21,6 +22,9 @@ module RubyTerraform
21
22
  sub = sub.with_option('-var', "'#{key}=#{value}'", separator: ' ')
22
23
  end
23
24
  sub = sub.with_option('-var-file', var_file) if var_file
25
+ var_files.each do |file|
26
+ sub = sub.with_option('-var-file', file)
27
+ end
24
28
  sub = sub.with_option('-state', state) if state
25
29
  sub = sub.with_option('-input', input) if input
26
30
  sub = sub.with_option('-auto-approve', auto_approve) unless auto_approve.nil?
@@ -8,6 +8,7 @@ module RubyTerraform
8
8
  directory = opts[:directory]
9
9
  vars = opts[:vars] || {}
10
10
  var_file = opts[:var_file]
11
+ var_files = opts[:var_files] || []
11
12
  state = opts[:state]
12
13
  force = opts[:force]
13
14
  no_backup = opts[:no_backup]
@@ -20,6 +21,9 @@ module RubyTerraform
20
21
  sub = sub.with_option('-var', "'#{key}=#{value}'", separator: ' ')
21
22
  end
22
23
  sub = sub.with_option('-var-file', var_file) if var_file
24
+ var_files.each do |file|
25
+ sub = sub.with_option('-var-file', file)
26
+ end
23
27
  sub = sub.with_option('-state', state) if state
24
28
  sub = sub.with_option('-backup', backup) if backup
25
29
  sub = sub.with_flag('-no-color') if no_color
@@ -8,6 +8,7 @@ module RubyTerraform
8
8
  directory = opts[:directory]
9
9
  vars = opts[:vars] || {}
10
10
  var_file = opts[:var_file]
11
+ var_files = opts[:var_files] || []
11
12
  state = opts[:state]
12
13
  plan = opts[:plan]
13
14
  input = opts[:input]
@@ -20,6 +21,9 @@ module RubyTerraform
20
21
  sub = sub.with_option('-var', "'#{key}=#{value}'", separator: ' ')
21
22
  end
22
23
  sub = sub.with_option('-var-file', var_file) if var_file
24
+ var_files.each do |file|
25
+ sub = sub.with_option('-var-file', file)
26
+ end
23
27
  sub = sub.with_option('-state', state) if state
24
28
  sub = sub.with_option('-out', plan) if plan
25
29
  sub = sub.with_option('-input', input) if input
@@ -8,6 +8,7 @@ module RubyTerraform
8
8
  directory = opts[:directory]
9
9
  vars = opts[:vars] || {}
10
10
  var_file = opts[:var_file]
11
+ var_files = opts[:var_files] || []
11
12
  state = opts[:state]
12
13
  refresh = opts[:refresh]
13
14
  input = opts[:input]
@@ -21,6 +22,9 @@ module RubyTerraform
21
22
  sub = sub.with_option('-var', "'#{key}=#{value}'", separator: ' ')
22
23
  end
23
24
  sub = sub.with_option('-var-file', var_file) if var_file
25
+ var_files.each do |file|
26
+ sub = sub.with_option('-var-file', file)
27
+ end
24
28
  sub = sub.with_option('-state', state) if state
25
29
  sub = sub.with_option('-input', input) if input
26
30
  sub = sub.with_option('-target', target) if target
@@ -8,6 +8,7 @@ module RubyTerraform
8
8
  directory = opts[:directory]
9
9
  vars = opts[:vars] || {}
10
10
  var_file = opts[:var_file]
11
+ var_files = opts[:var_files] || []
11
12
  state = opts[:state]
12
13
  check_variables = opts[:check_variables]
13
14
  no_color = opts[:no_color]
@@ -18,6 +19,9 @@ module RubyTerraform
18
19
  sub = sub.with_option('-var', "'#{key}=#{value}'", separator: ' ')
19
20
  end
20
21
  sub = sub.with_option('-var-file', var_file) if var_file
22
+ var_files.each do |file|
23
+ sub = sub.with_option('-var-file', file)
24
+ end
21
25
  sub = sub.with_option('-state', state) if state
22
26
  sub = sub.with_option('-check-variables', check_variables) unless check_variables.nil?
23
27
  sub = sub.with_flag('-no-color') if no_color
@@ -1,3 +1,3 @@
1
1
  module RubyTerraform
2
- VERSION = "0.12.1"
2
+ VERSION = "0.13.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson