ruby-terraform 0.31.0.pre.pre.1 → 0.31.0.pre.pre.2

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: eac04583b4ca0b349ffa4a1c81cb764f62b63bc27446b8701c985b2744ff2fd2
4
- data.tar.gz: 1ba9b02ee4d9397c491e18138b0ea013704e33bb4e94cfcd3d83401c1f4b4377
3
+ metadata.gz: e8ab81a9a37f8fbab7fb24fae0322f2e686b423bf67093ab51c74c679e925f72
4
+ data.tar.gz: e8cfb6b87ff32093608e449d31573554e824d91036f4b17a09422ee791329fff
5
5
  SHA512:
6
- metadata.gz: 2d7552770cd593e0736d0fea766766a6507a0c74789e26783efb99c4936dfcfd7e9ebe543163cb2fb4a929dec69a5cd806aed521db0ad83b1a53ffa5a6039e6f
7
- data.tar.gz: aa12d9131f3c9ac584ba6054f3464fa2078addc8f08fc0fc67661066a060878191a1e0661dd89cbe9a6d7037960af2642e74bd33ca354fbc1ad66e3450a540a0
6
+ metadata.gz: 4437914e08d45fabb0cf7b0714db584ea0e5de1b7eb7ff83be54bb72e2881d7016da3d67c545865a1847ed73ca5fdee52aa902ef3930bed47d2392fd14ff259a
7
+ data.tar.gz: 7cf12ed907f6dbc5866d0b6e1cd07c44bf6576ef4a24c3a022d447b8188930200b7f6976567068cb136f5c12cec2f1a97c691dd6dd7dfa82448b880638cda572
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (0.31.0.pre.pre.1)
4
+ ruby-terraform (0.31.0.pre.pre.2)
5
5
  lino (~> 1.1)
6
6
 
7
7
  GEM
@@ -6,9 +6,12 @@ module RubyTerraform
6
6
  class Apply < Base
7
7
  def configure_command(builder, opts)
8
8
  directory = opts[:directory]
9
+ plan = opts[:plan]
9
10
  vars = opts[:vars] || {}
10
11
  var_file = opts[:var_file]
11
12
  var_files = opts[:var_files] || []
13
+ target = opts[:target]
14
+ targets = opts[:targets] || []
12
15
  state = opts[:state]
13
16
  input = opts[:input]
14
17
  auto_approve = opts[:auto_approve]
@@ -19,20 +22,26 @@ module RubyTerraform
19
22
  builder
20
23
  .with_subcommand('apply') do |sub|
21
24
  vars.each do |key, value|
22
- sub = sub.with_option('-var', "'#{key}=#{value}'", separator: ' ')
25
+ sub = sub.with_option(
26
+ '-var', "'#{key}=#{value}'", separator: ' ')
23
27
  end
24
28
  sub = sub.with_option('-var-file', var_file) if var_file
25
29
  var_files.each do |file|
26
30
  sub = sub.with_option('-var-file', file)
27
31
  end
32
+ sub = sub.with_option('-target', target) if target
33
+ targets.each do |file|
34
+ sub = sub.with_option('-target', file)
35
+ end
28
36
  sub = sub.with_option('-state', state) if state
29
37
  sub = sub.with_option('-input', input) if input
30
- sub = sub.with_option('-auto-approve', auto_approve) unless auto_approve.nil?
38
+ sub = sub.with_option('-auto-approve', auto_approve) unless
39
+ auto_approve.nil?
31
40
  sub = sub.with_option('-backup', backup) if backup
32
41
  sub = sub.with_flag('-no-color') if no_color
33
42
  sub
34
43
  end
35
- .with_argument(directory)
44
+ .with_argument(plan || directory)
36
45
  end
37
46
  end
38
47
  end
@@ -9,6 +9,8 @@ module RubyTerraform
9
9
  vars = opts[:vars] || {}
10
10
  var_file = opts[:var_file]
11
11
  var_files = opts[:var_files] || []
12
+ target = opts[:target]
13
+ targets = opts[:targets] || []
12
14
  state = opts[:state]
13
15
  force = opts[:force]
14
16
  no_backup = opts[:no_backup]
@@ -24,6 +26,10 @@ module RubyTerraform
24
26
  var_files.each do |file|
25
27
  sub = sub.with_option('-var-file', file)
26
28
  end
29
+ sub = sub.with_option('-target', target) if target
30
+ targets.each do |target_name|
31
+ sub = sub.with_option('-target', target_name)
32
+ end
27
33
  sub = sub.with_option('-state', state) if state
28
34
  sub = sub.with_option('-backup', backup) if backup
29
35
  sub = sub.with_flag('-no-color') if no_color
@@ -9,6 +9,8 @@ module RubyTerraform
9
9
  vars = opts[:vars] || {}
10
10
  var_file = opts[:var_file]
11
11
  var_files = opts[:var_files] || []
12
+ target = opts[:target]
13
+ targets = opts[:targets] || []
12
14
  state = opts[:state]
13
15
  plan = opts[:plan]
14
16
  input = opts[:input]
@@ -25,6 +27,10 @@ module RubyTerraform
25
27
  var_files.each do |file|
26
28
  sub = sub.with_option('-var-file', file)
27
29
  end
30
+ sub = sub.with_option('-target', target) if target
31
+ targets.each do |file|
32
+ sub = sub.with_option('-target', file)
33
+ end
28
34
  sub = sub.with_option('-state', state) if state
29
35
  sub = sub.with_option('-out', plan) if plan
30
36
  sub = sub.with_option('-input', input) if input
@@ -12,6 +12,7 @@ module RubyTerraform
12
12
  state = opts[:state]
13
13
  input = opts[:input]
14
14
  target = opts[:target]
15
+ targets = opts[:targets] || []
15
16
  no_color = opts[:no_color]
16
17
 
17
18
  builder
@@ -27,6 +28,9 @@ module RubyTerraform
27
28
  sub = sub.with_option('-state', state) if state
28
29
  sub = sub.with_option('-input', input) if input
29
30
  sub = sub.with_option('-target', target) if target
31
+ targets.each do |target_name|
32
+ sub = sub.with_option('-target', target_name)
33
+ end
30
34
  sub = sub.with_flag('-no-color') if no_color
31
35
  sub
32
36
  end
@@ -1,3 +1,3 @@
1
1
  module RubyTerraform
2
- VERSION = "0.31.0-pre.1"
2
+ VERSION = "0.31.0-pre.2"
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.31.0.pre.pre.1
4
+ version: 0.31.0.pre.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson