ruby-terraform 1.5.0.pre.4 → 1.5.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -10
- data/lib/ruby_terraform/commands/apply.rb +10 -1
- data/lib/ruby_terraform/commands/plan.rb +8 -1
- data/lib/ruby_terraform/options/definitions.rb +1 -1
- data/lib/ruby_terraform/version.rb +1 -1
- data/lib/ruby_terraform.rb +14 -0
- 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: 21306f16a552a1e6417d80edd0649c5cada5b9ea8b4a3184672d6e28fe250071
|
4
|
+
data.tar.gz: a499d25ba462c89cb754dc1ae011034e8e757e28dc297cce7f764d02826c6a3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b0d94d91223fe4971ed495074f2096fb96afecdff3a73a78e257cd3032604f5a53e6794e8107390aec45d6e2dead0b5f72f4e942c7538139a5a185c2fde3f4f
|
7
|
+
data.tar.gz: '02449b26b7f0679619fd5acf4b60e6664c4e93cdd44ea0192abbd26b896c673a8e380b58991dd8cd0a02bf4a159130d8234d0724cb8f0475ce0ef6328da90477'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-terraform (1.5.0.pre.
|
4
|
+
ruby-terraform (1.5.0.pre.5)
|
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.
|
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.
|
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)
|
@@ -88,7 +88,7 @@ GEM
|
|
88
88
|
sawyer (~> 0.8.0, >= 0.5.3)
|
89
89
|
open4 (1.3.4)
|
90
90
|
parallel (1.22.1)
|
91
|
-
parser (3.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.
|
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.
|
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.
|
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.
|
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.
|
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
|
data/lib/ruby_terraform.rb
CHANGED
@@ -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.
|
4
|
+
version: 1.5.0.pre.5
|
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-
|
11
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: immutable-struct
|