ruby-terraform 1.7.0.pre.13 → 1.7.0.pre.16
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 +4 -4
- data/Gemfile.lock +7 -7
- data/lib/ruby_terraform/commands/base.rb +1 -1
- data/lib/ruby_terraform/models/change.rb +11 -1
- data/lib/ruby_terraform/models/output_change.rb +16 -4
- data/lib/ruby_terraform/models/plan.rb +18 -1
- data/lib/ruby_terraform/models/resource_change.rb +11 -1
- data/lib/ruby_terraform/version.rb +1 -1
- 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: dd007b457dc6a55889771e40ea0157af73bf894a500ade5f8f6642407506fcf9
|
4
|
+
data.tar.gz: 93d6096fa5cd12504f6f603560e24d45f1debdc68f1cc2f0c795570c88b67d0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 119eca7f47a3754c7bc9f1239b870b9dd07c45886d2a759c41552b91c673eec048318fe545ba66912e14b2bc77caf6784faa1a14941266ef63118b54f4458f02
|
7
|
+
data.tar.gz: 1d7a80267a4eeefe47723d558aab83e7e9cb398195aa7f46abdcb9a8b73f92c00aa8707b27a467aadd97cf226eee2ecb1508dce8b91a98e64f1036c564b4cda3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-terraform (1.7.0.pre.
|
4
|
+
ruby-terraform (1.7.0.pre.16)
|
5
5
|
immutable-struct (~> 2.4)
|
6
6
|
lino (~> 3.0)
|
7
7
|
|
@@ -69,7 +69,7 @@ GEM
|
|
69
69
|
sawyer (~> 0.9)
|
70
70
|
open4 (1.3.4)
|
71
71
|
parallel (1.22.1)
|
72
|
-
parser (3.1.2.
|
72
|
+
parser (3.1.2.1)
|
73
73
|
ast (~> 2.4.1)
|
74
74
|
pry (0.14.1)
|
75
75
|
coderay (~> 1.1)
|
@@ -115,17 +115,17 @@ GEM
|
|
115
115
|
diff-lcs (>= 1.2.0, < 2.0)
|
116
116
|
rspec-support (~> 3.11.0)
|
117
117
|
rspec-support (3.11.0)
|
118
|
-
rubocop (1.
|
118
|
+
rubocop (1.35.1)
|
119
119
|
json (~> 2.3)
|
120
120
|
parallel (~> 1.10)
|
121
|
-
parser (>= 3.1.
|
121
|
+
parser (>= 3.1.2.1)
|
122
122
|
rainbow (>= 2.2.2, < 4.0)
|
123
123
|
regexp_parser (>= 1.8, < 3.0)
|
124
124
|
rexml (>= 3.2.5, < 4.0)
|
125
|
-
rubocop-ast (>= 1.
|
125
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
126
126
|
ruby-progressbar (~> 1.7)
|
127
127
|
unicode-display_width (>= 1.4.0, < 3.0)
|
128
|
-
rubocop-ast (1.
|
128
|
+
rubocop-ast (1.21.0)
|
129
129
|
parser (>= 3.1.1.0)
|
130
130
|
rubocop-rake (0.6.0)
|
131
131
|
rubocop (~> 1.0)
|
@@ -180,4 +180,4 @@ DEPENDENCIES
|
|
180
180
|
yard
|
181
181
|
|
182
182
|
BUNDLED WITH
|
183
|
-
2.3.
|
183
|
+
2.3.21
|
@@ -11,7 +11,7 @@ module RubyTerraform
|
|
11
11
|
|
12
12
|
# Constructs an instance of the command.
|
13
13
|
#
|
14
|
-
def initialize(
|
14
|
+
def initialize(opts = {})
|
15
15
|
@binary = opts[:binary] || RubyTerraform.configuration.binary
|
16
16
|
@logger = opts[:logger] || RubyTerraform.configuration.logger
|
17
17
|
@options = opts[:options] || RubyTerraform.configuration.options
|
@@ -9,7 +9,7 @@ module RubyTerraform
|
|
9
9
|
include ValueEquality
|
10
10
|
|
11
11
|
def initialize(content)
|
12
|
-
@content = content
|
12
|
+
@content = symbolise_keys(content)
|
13
13
|
end
|
14
14
|
|
15
15
|
def actions
|
@@ -99,6 +99,16 @@ module RubyTerraform
|
|
99
99
|
def state
|
100
100
|
[@content]
|
101
101
|
end
|
102
|
+
|
103
|
+
private
|
104
|
+
|
105
|
+
def symbolise_keys(object)
|
106
|
+
if object.is_a?(Hash)
|
107
|
+
object.to_h { |k, v| [k.to_sym, symbolise_keys(v)] }
|
108
|
+
else
|
109
|
+
object
|
110
|
+
end
|
111
|
+
end
|
102
112
|
end
|
103
113
|
end
|
104
114
|
end
|
@@ -8,11 +8,13 @@ module RubyTerraform
|
|
8
8
|
class OutputChange
|
9
9
|
include ValueEquality
|
10
10
|
|
11
|
-
attr_reader(:name)
|
12
|
-
|
13
11
|
def initialize(name, content)
|
14
|
-
@name = name
|
15
|
-
@content = content
|
12
|
+
@name = name.to_sym
|
13
|
+
@content = symbolise_keys(content)
|
14
|
+
end
|
15
|
+
|
16
|
+
def name
|
17
|
+
@name.to_s
|
16
18
|
end
|
17
19
|
|
18
20
|
def change
|
@@ -54,6 +56,16 @@ module RubyTerraform
|
|
54
56
|
def state
|
55
57
|
[@name, @content]
|
56
58
|
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
def symbolise_keys(object)
|
63
|
+
if object.is_a?(Hash)
|
64
|
+
object.to_h { |k, v| [k.to_sym, symbolise_keys(v)] }
|
65
|
+
else
|
66
|
+
object
|
67
|
+
end
|
68
|
+
end
|
57
69
|
end
|
58
70
|
end
|
59
71
|
end
|
@@ -1,13 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require_relative '../value_equality'
|
3
4
|
require_relative 'resource_change'
|
4
5
|
require_relative 'output_change'
|
5
6
|
|
6
7
|
module RubyTerraform
|
7
8
|
module Models
|
8
9
|
class Plan
|
10
|
+
include ValueEquality
|
11
|
+
|
9
12
|
def initialize(content)
|
10
|
-
@content = content
|
13
|
+
@content = symbolise_keys(content)
|
11
14
|
end
|
12
15
|
|
13
16
|
def format_version
|
@@ -61,6 +64,20 @@ module RubyTerraform
|
|
61
64
|
def to_h
|
62
65
|
@content
|
63
66
|
end
|
67
|
+
|
68
|
+
def state
|
69
|
+
[@content]
|
70
|
+
end
|
71
|
+
|
72
|
+
private
|
73
|
+
|
74
|
+
def symbolise_keys(object)
|
75
|
+
if object.is_a?(Hash)
|
76
|
+
object.to_h { |k, v| [k.to_sym, symbolise_keys(v)] }
|
77
|
+
else
|
78
|
+
object
|
79
|
+
end
|
80
|
+
end
|
64
81
|
end
|
65
82
|
end
|
66
83
|
end
|
@@ -9,7 +9,7 @@ module RubyTerraform
|
|
9
9
|
include ValueEquality
|
10
10
|
|
11
11
|
def initialize(content)
|
12
|
-
@content = content
|
12
|
+
@content = symbolise_keys(content)
|
13
13
|
end
|
14
14
|
|
15
15
|
def address
|
@@ -95,6 +95,16 @@ module RubyTerraform
|
|
95
95
|
def state
|
96
96
|
[@content]
|
97
97
|
end
|
98
|
+
|
99
|
+
private
|
100
|
+
|
101
|
+
def symbolise_keys(object)
|
102
|
+
if object.is_a?(Hash)
|
103
|
+
object.to_h { |k, v| [k.to_sym, symbolise_keys(v)] }
|
104
|
+
else
|
105
|
+
object
|
106
|
+
end
|
107
|
+
end
|
98
108
|
end
|
99
109
|
end
|
100
110
|
end
|
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.7.0.pre.
|
4
|
+
version: 1.7.0.pre.16
|
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-08-
|
11
|
+
date: 2022-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: immutable-struct
|