ruby-terraform 1.7.0.pre.9 → 1.7.0.pre.10

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: c403864d9cb04ecc8a32e6896a42c4930c0a5438e484a0649e89ca08b123c387
4
- data.tar.gz: 024013a4d2aec216d6908f70c172c76cf7c013d7aa0817a94605ced25eda42fa
3
+ metadata.gz: 102ce285cd2f81079ad3007995506cb41124e61f5d70ae93d98c6de235b64d75
4
+ data.tar.gz: ac4c7f3e50f9ed75054bee0674529071b42d16b852a22d042f23cd36659e92cd
5
5
  SHA512:
6
- metadata.gz: c8e3746a3f15d58ad199bf3669233bbe94c4d839f6380bce36ab0174adab5d3fa6f339b5abd2c0aa75d5d850cec56c7ccfa2d006ffe7ae27763b54beaa7a26d3
7
- data.tar.gz: d1c4c09c52778d0365ab77dc90503d14e405ba09d938de31c1317a4355e3aaa665719433fe3c8551ab02182aeeedaece6ffbf2e2260542baa6e01ac40e1888b6
6
+ metadata.gz: 8c939e042d81d927564c89f53bd8fcd32cde4c0d02590ff8e4616c474edd5d46d94336afcc83d58cfc836347361eaf21ed2b0fe9fd9bf65a3d3f513e4f73d960
7
+ data.tar.gz: 8abd681b0fc3a1ada5ac560d4b8299b8c477d6a9e5f23a07ab0885f4ba7c83281b0cd2d4ce53968c1ace506fb8538f607c9083a1bb05daabbeacfb53cc017435
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (1.7.0.pre.9)
4
+ ruby-terraform (1.7.0.pre.10)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
@@ -22,7 +22,7 @@ GEM
22
22
  diff-lcs (1.5.0)
23
23
  docile (1.4.0)
24
24
  excon (0.92.3)
25
- faker (2.21.0)
25
+ faker (2.22.0)
26
26
  i18n (>= 1.8.11, < 2)
27
27
  faraday (2.3.0)
28
28
  faraday-net_http (~> 2.0)
@@ -47,7 +47,7 @@ GEM
47
47
  rspec (>= 2.99.0, < 4.0)
48
48
  hamster (3.0.0)
49
49
  concurrent-ruby (~> 1.0)
50
- i18n (1.10.0)
50
+ i18n (1.12.0)
51
51
  concurrent-ruby (~> 1.0)
52
52
  immutable-struct (2.4.1)
53
53
  json (2.6.2)
@@ -180,4 +180,4 @@ DEPENDENCIES
180
180
  yard
181
181
 
182
182
  BUNDLED WITH
183
- 2.3.18
183
+ 2.3.19
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../value_equality'
4
+ require_relative 'change'
5
+
6
+ module RubyTerraform
7
+ module Models
8
+ class OutputChange
9
+ include ValueEquality
10
+
11
+ attr_reader(:name)
12
+
13
+ def initialize(name, content)
14
+ @name = name
15
+ @content = content
16
+ end
17
+
18
+ def change
19
+ Change.new(@content)
20
+ end
21
+
22
+ def create?
23
+ change.create?
24
+ end
25
+
26
+ def update?
27
+ change.update?
28
+ end
29
+
30
+ def delete?
31
+ change.delete?
32
+ end
33
+
34
+ def inspect
35
+ to_h.inspect
36
+ end
37
+
38
+ def to_h
39
+ { @name => @content }
40
+ end
41
+
42
+ def state
43
+ [@name, @content]
44
+ end
45
+ end
46
+ end
47
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'resource_change'
4
+ require_relative 'output_change'
4
5
 
5
6
  module RubyTerraform
6
7
  module Models
@@ -39,6 +40,12 @@ module RubyTerraform
39
40
  end
40
41
  end
41
42
 
43
+ def output_changes
44
+ @content[:output_changes].map do |output_name, output_change|
45
+ OutputChange.new(output_name, output_change)
46
+ end
47
+ end
48
+
42
49
  def inspect
43
50
  @content.inspect
44
51
  end
@@ -7,6 +7,7 @@ module RubyTerraform
7
7
  module Models
8
8
  class ResourceChange
9
9
  include ValueEquality
10
+
10
11
  def initialize(content)
11
12
  @content = content
12
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyTerraform
4
- VERSION = '1.7.0.pre.9'
4
+ VERSION = '1.7.0.pre.10'
5
5
  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.9
4
+ version: 1.7.0.pre.10
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-07-26 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct
@@ -324,6 +324,7 @@ files:
324
324
  - lib/ruby_terraform/models/map.rb
325
325
  - lib/ruby_terraform/models/objects.rb
326
326
  - lib/ruby_terraform/models/omitted_value.rb
327
+ - lib/ruby_terraform/models/output_change.rb
327
328
  - lib/ruby_terraform/models/path.rb
328
329
  - lib/ruby_terraform/models/path_set.rb
329
330
  - lib/ruby_terraform/models/plan.rb