File tree Expand file tree Collapse file tree 5 files changed +20
-0
lines changed
spec/ruby_terraform/commands Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ module Commands
4747 # * +:refresh+: when +true+, updates state prior to checking for
4848 # differences; when +false+ uses locally available state; defaults to
4949 # +true+; this has no effect when +:plan+ is provided.
50+ # * +:refresh_only+: when +true+, checks whether remote objects still
51+ # match the outcome of the most recent Terraform apply but does not
52+ # propose any actions to undo any changes made outside of Terraform; this
53+ # has no effect when +:plan+ is provided
5054 # * +:replace+: force replacement of a particular resource instance using
5155 # its resource address. If the apply would've normally produced an update
5256 # or no-op action for this instance, Terraform will replace it instead.
@@ -105,6 +109,7 @@ def options
105109 -no-color
106110 -parallelism
107111 -refresh
112+ -refresh-only
108113 -replace
109114 -state
110115 -state-out
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ module Commands
4545 # * +:refresh+: when +true+, updates state prior to checking for
4646 # differences; when +false+ uses locally available state; defaults to
4747 # +true+; this has no effect when +:plan+ is provided.
48+ # * +:refresh_only+: when +true+, checks whether remote objects still
49+ # match the outcome of the most recent Terraform apply but does not
50+ # propose any actions to undo any changes made outside of Terraform
4851 # * +:replace+: force replacement of a particular resource instance using
4952 # its resource address. If the plan would've normally produced an update
5053 # or no-op action for this instance, Terraform will plan to replace it
@@ -100,6 +103,7 @@ def options
100103 -out
101104 -parallelism
102105 -refresh
106+ -refresh-only
103107 -replace
104108 -state
105109 -target
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ module Options
3939 -list
4040 -lock
4141 -refresh
42+ -refresh-only
4243 -upgrade
4344 -verify-plugins
4445 -write
Original file line number Diff line number Diff line change 9090 described_class , 'apply' , :refresh
9191 )
9292
93+ it_behaves_like (
94+ 'a command with a boolean option' ,
95+ described_class , 'apply' , :refresh_only
96+ )
97+
9398 it_behaves_like (
9499 'a command with an option' ,
95100 described_class , 'apply' , :state
Original file line number Diff line number Diff line change 169169 described_class , 'plan' , :refresh
170170 )
171171
172+ it_behaves_like (
173+ 'a command with a boolean option' ,
174+ described_class , 'plan' , :refresh_only
175+ )
176+
172177 it_behaves_like (
173178 'a command with an option' ,
174179 described_class , 'plan' , :state
You can’t perform that action at this time.
0 commit comments