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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +12 -3
- data/lib/ruby_terraform/commands/apply.rb +4 -0
- data/lib/ruby_terraform/commands/destroy.rb +4 -0
- data/lib/ruby_terraform/commands/plan.rb +4 -0
- data/lib/ruby_terraform/commands/refresh.rb +4 -0
- data/lib/ruby_terraform/commands/validate.rb +4 -0
- data/lib/ruby_terraform/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: 0fbeec4544d4c60733a6173770fa06c536ed7476
|
4
|
+
data.tar.gz: 59a40104a6f6227f6c2ff07e9876d1c98651d6c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86894496b91742a7e2f85b581fe82e98d152ce51953ca9fa6ba096a4fba531d38bdaa9a8b037a85a34368efe67809976fa73198cb36c98ed030b0d3feb321fb8
|
7
|
+
data.tar.gz: fd5d003b89d7515766e3af53ff33d873371db4888d7b6cef6dc6a9a7413fc179b9367ecd10739a38e6bf3d5ab96b8b19f627c24664da52aa04c108f11963d926
|
data/Gemfile.lock
CHANGED
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`:
|
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`:
|
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`:
|
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
|