ruby-terraform 1.5.0.pre.3 → 1.5.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
  SHA256:
3
- metadata.gz: 84c6f268e3f8c0e5ee9e510de200771df55bfccbd44ac0fb5226952c861e06ee
4
- data.tar.gz: fa209357adc77bc81945c66df0113cba955f9573123e83dda43c9841de4dd2a2
3
+ metadata.gz: ad4e5e0ec2f10785081a48749f8622d47fb0ff96f8e50dc12ae00434abb4adb9
4
+ data.tar.gz: 23b9b9d7a9ae431c8111cd5732942f3e9dc5fc4e526cc2715babaf3b6378551c
5
5
  SHA512:
6
- metadata.gz: a44c51402e727de97a69dec1af1494dd4de7d652cf6a078c9d3f2413691f0084229851ae88db383474f85181000e0bd8db91e1d91e12f3ac58f0a3406857bf7f
7
- data.tar.gz: e41691ab36dd32e934600b38c7772502ddd8d49eb850c92e638878a5ea0f6f0fd74f37b72c91fe13fa662b78349dea443204b0fc3ae03b39cf2d07bb7270cf0e
6
+ metadata.gz: 66661db563b4447babbed30ddd0ad8cbeb10a449d39aedf00a4fd06634dfabba9066f8db5d8e18d32e1cf8d71ebe67769436b6768fbc90de9fd69d974f3168c0
7
+ data.tar.gz: 650063fb1aa61c0082317cc680f68cf6a3f81ce114ad26e644f4d7b5a3b766a9897fe0c58b23e2aa5a8abb63fb35cf6a8c1097dbb4fe17f0accb576fa49ac7f7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (1.5.0.pre.3)
4
+ ruby-terraform (1.5.0)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
@@ -18,11 +18,11 @@ GEM
18
18
  ast (2.4.2)
19
19
  coderay (1.1.3)
20
20
  colored2 (3.1.2)
21
- concurrent-ruby (1.1.9)
21
+ concurrent-ruby (1.1.10)
22
22
  diff-lcs (1.5.0)
23
23
  docile (1.4.0)
24
24
  excon (0.92.0)
25
- faker (2.20.0)
25
+ faker (2.21.0)
26
26
  i18n (>= 1.8.11, < 2)
27
27
  faraday (1.10.0)
28
28
  faraday-em_http (~> 1.0)
@@ -87,8 +87,8 @@ GEM
87
87
  faraday (>= 0.9)
88
88
  sawyer (~> 0.8.0, >= 0.5.3)
89
89
  open4 (1.3.4)
90
- parallel (1.21.0)
91
- parser (3.1.1.0)
90
+ parallel (1.22.1)
91
+ parser (3.1.2.0)
92
92
  ast (~> 2.4.1)
93
93
  pry (0.14.1)
94
94
  coderay (~> 1.1)
@@ -119,7 +119,7 @@ GEM
119
119
  rb-fsevent (0.11.1)
120
120
  rb-inotify (0.10.1)
121
121
  ffi (~> 1.0)
122
- regexp_parser (2.2.1)
122
+ regexp_parser (2.4.0)
123
123
  rexml (3.2.5)
124
124
  rspec (3.11.0)
125
125
  rspec-core (~> 3.11.0)
@@ -134,16 +134,16 @@ GEM
134
134
  diff-lcs (>= 1.2.0, < 2.0)
135
135
  rspec-support (~> 3.11.0)
136
136
  rspec-support (3.11.0)
137
- rubocop (1.26.0)
137
+ rubocop (1.30.0)
138
138
  parallel (~> 1.10)
139
139
  parser (>= 3.1.0.0)
140
140
  rainbow (>= 2.2.2, < 4.0)
141
141
  regexp_parser (>= 1.8, < 3.0)
142
- rexml
143
- rubocop-ast (>= 1.16.0, < 2.0)
142
+ rexml (>= 3.2.5, < 4.0)
143
+ rubocop-ast (>= 1.18.0, < 2.0)
144
144
  ruby-progressbar (~> 1.7)
145
145
  unicode-display_width (>= 1.4.0, < 3.0)
146
- rubocop-ast (1.16.0)
146
+ rubocop-ast (1.18.0)
147
147
  parser (>= 3.1.1.0)
148
148
  rubocop-rake (0.6.0)
149
149
  rubocop (~> 1.0)
@@ -195,4 +195,4 @@ DEPENDENCIES
195
195
  yard
196
196
 
197
197
  BUNDLED WITH
198
- 2.3.9
198
+ 2.3.14
@@ -47,6 +47,14 @@ module RubyTerraform
47
47
  # * +:refresh+: when +true+, updates state prior to checking for
48
48
  # differences; when +false+ uses locally available state; defaults to
49
49
  # +true+; this has no effect when +:plan+ is provided.
50
+ # * +replace+: force replacement of a particular resource instance using
51
+ # its resource address. If the apply would've normally produced an update
52
+ # or no-op action for this instance, Terraform will replace it instead.
53
+ # * +replaces+: an array of resource addresses to replace; if both
54
+ # +replace+ and +replaces+ are provided, all resources will be replaced.
55
+ # * +:state+: the path to the state file from which to read state and in
56
+ # which to store state (unless +:state_out+ is specified); defaults to
57
+ # +"terraform.tfstate"+.
50
58
  # * +:state+: the path to the state file from which to read state and in
51
59
  # which to store state (unless +:state_out+ is specified); defaults to
52
60
  # +"terraform.tfstate"+.
@@ -92,6 +100,7 @@ module RubyTerraform
92
100
  -no-color
93
101
  -parallelism
94
102
  -refresh
103
+ -replace
95
104
  -state
96
105
  -state-out
97
106
  -target
@@ -109,7 +118,7 @@ module RubyTerraform
109
118
 
110
119
  # @!visibility private
111
120
  def parameter_defaults(_parameters)
112
- { vars: {}, var_files: [], targets: [] }
121
+ { vars: {}, var_files: [], targets: [], replaces: [] }
113
122
  end
114
123
 
115
124
  # @!visibility private
@@ -45,6 +45,12 @@ module RubyTerraform
45
45
  # * +:refresh+: when +true+, updates state prior to checking for
46
46
  # differences; when +false+ uses locally available state; defaults to
47
47
  # +true+; this has no effect when +:plan+ is provided.
48
+ # * +replace+: force replacement of a particular resource instance using
49
+ # its resource address. If the plan would've normally produced an update
50
+ # or no-op action for this instance, Terraform will plan to replace it
51
+ # instead.
52
+ # * +replaces+: an array of resource addresses to replace; if both
53
+ # +replace+ and +replaces+ are provided, all resources will be replaced.
48
54
  # * +:state+: the path to the state file from which to read state and in
49
55
  # which to store state (unless +:state_out+ is specified); defaults to
50
56
  # +"terraform.tfstate"+.
@@ -89,6 +95,7 @@ module RubyTerraform
89
95
  -out
90
96
  -parallelism
91
97
  -refresh
98
+ -replace
92
99
  -state
93
100
  -target
94
101
  -var
@@ -105,7 +112,7 @@ module RubyTerraform
105
112
 
106
113
  # @!visibility private
107
114
  def parameter_defaults(_parameters)
108
- { vars: {}, var_files: [], targets: [] }
115
+ { vars: {}, var_files: [], targets: [], replaces: [] }
109
116
  end
110
117
  end
111
118
  end
@@ -22,7 +22,7 @@ module RubyTerraform
22
22
  end,
23
23
 
24
24
  # string repeatable options
25
- %w[-var-file -target -platform -plugin-dir].map do |o|
25
+ %w[-var-file -target -platform -plugin-dir -replace].map do |o|
26
26
  definition(
27
27
  name: o, option_type: :standard, value_type: :string,
28
28
  repeatable: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyTerraform
4
- VERSION = '1.5.0.pre.3'
4
+ VERSION = '1.5.0'
5
5
  end
@@ -69,6 +69,13 @@ module RubyTerraform
69
69
  # @option parameters [Boolean] :refresh (true) When +true+, updates state
70
70
  # prior to checking for differences; when +false+ uses locally available
71
71
  # state; this has no effect when +:plan+ is provided.
72
+ # @option parameters [String] :replace Force replacement of a resource
73
+ # instance using its resource address. If the apply would've normally
74
+ # produced an update or no-op action for this instance, Terraform will
75
+ # replace it instead.
76
+ # @option parameters [Array<String>] :replaces An array of resource
77
+ # addresses to replace; if both +replace+ and +replaces+ are provided,
78
+ # all resources will be replaced.
72
79
  # @option parameters [String] :state ("terraform.tfstate") The path to the
73
80
  # state file from which to read state and in which to store state (unless
74
81
  # +:state_out+ is specified).
@@ -576,6 +583,13 @@ module RubyTerraform
576
583
  # @option parameters [Boolean] :refresh (true) When +true+, updates state
577
584
  # prior to checking for differences; when +false+ uses locally available
578
585
  # state; this has no effect when +:plan+ is provided.
586
+ # @option parameters [String] :replace Force replacement of a resource
587
+ # instance using its resource address. If the plan would've normally
588
+ # produced an update or no-op action for this instance, Terraform will
589
+ # plan to replace it instead.
590
+ # @option parameters [Array<String>] :replaces An array of resource
591
+ # addresses to replace; if both +replace+ and +replaces+ are provided,
592
+ # all resources will be replaced.
579
593
  # @option parameters [String] :state ("terraform.tfstate") The path to the
580
594
  # state file from which to read state and in which to store state (unless
581
595
  # +:state_out+ is specified).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0.pre.3
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-21 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct
@@ -351,9 +351,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
351
351
  version: '2.7'
352
352
  required_rubygems_version: !ruby/object:Gem::Requirement
353
353
  requirements:
354
- - - ">"
354
+ - - ">="
355
355
  - !ruby/object:Gem::Version
356
- version: 1.3.1
356
+ version: '0'
357
357
  requirements: []
358
358
  rubygems_version: 3.1.6
359
359
  signing_key: