cfn-model 0.6.5 → 0.6.6

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: '0192739b7367787ee3b788d075ce2753c618bbf5962542f9612b0799c458c4ae'
4
- data.tar.gz: 0cdec84887e934a1794ba04a97bf7dee42946d668e845573908d801306fc6dc6
3
+ metadata.gz: 696ba992da760c8627ace103dccdce05b2eeec0404cc568ed7086fc74b734a5f
4
+ data.tar.gz: 335d86d84e4f2be5249c954392f1bb889fe19fbbe20b48f81261abdc03f5c74f
5
5
  SHA512:
6
- metadata.gz: 3bab8d35d13d44789d734cceba9289182a9673821d11d8b6e5db34c06d7a7af6ba25db9f5522ac5bfae7ae03d1b39ce79488dc56ba0a38c5d8afec978ab39ae2
7
- data.tar.gz: 143f2f5c176f14c1c4c568e5de4be4baf6f289e256daf6197f30fa1310ce770144deeb889cc7b4292355051e802c05a0d30206b0e73ceb059d891e252e407c5c
6
+ metadata.gz: 0fdc30f8d26a35eb6a91e2146cf37f5dc2ddd7ef3d7d0abba24010efcde2206d82cdede85fe3e0b3c53eccdfb8562126dc84d17b542b9304eb56919e0e6301e1
7
+ data.tar.gz: 4046b076c06c39f0a61b207921b8ce96ecfa519ff5955895bf0f29b5789b07347adebf2c2eb4c12b069672fd2a71ceef98ce87f3e0afb4214836038768bd388a
@@ -3,7 +3,7 @@
3
3
  require_relative 'references'
4
4
 
5
5
  class CfnModel
6
- attr_reader :resources, :parameters, :line_numbers, :conditions, :globals, :mappings
6
+ attr_reader :resources, :parameters, :line_numbers, :conditions, :globals, :mappings, :element_types
7
7
 
8
8
  ##
9
9
  # if you really want it, here it is - the raw Hash from YAML.load. you'll have to mess with structural nits of
@@ -19,6 +19,7 @@ class CfnModel
19
19
  @mappings = {}
20
20
  @raw_model = nil
21
21
  @line_numbers = {}
22
+ @element_types = {}
22
23
  end
23
24
 
24
25
  ##
@@ -156,6 +156,7 @@ class CfnParser
156
156
  assign_fields_based_upon_properties resource_object, resource, cfn_model
157
157
 
158
158
  cfn_model.resources[resource_name] = resource_object
159
+ cfn_model.element_types[resource_name] = "resource"
159
160
  end
160
161
  cfn_model
161
162
  end
@@ -173,6 +174,7 @@ class CfnParser
173
174
 
174
175
  cfn_model.resources[resource_name] = resource_object
175
176
  cfn_model.line_numbers[resource_name] = resource['Type']['line']
177
+ cfn_model.element_types[resource_name] = "resource"
176
178
  end
177
179
  cfn_model
178
180
  end
@@ -193,6 +195,7 @@ class CfnParser
193
195
 
194
196
  cfn_model.parameters[parameter_name] = parameter
195
197
  cfn_model.line_numbers[parameter_name] = parameter_hash['Type']['line']
198
+ cfn_model.element_types[parameter_name] = "parameter"
196
199
  end
197
200
  cfn_model
198
201
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kascic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -193,9 +193,9 @@ licenses:
193
193
  metadata:
194
194
  bug_tracker_uri: https://github.com/stelligent/cfn-model/issues
195
195
  changelog_uri: https://github.com/stelligent/cfn-model/releases
196
- documentation_uri: https://www.rubydoc.info/gems/cfn-model/0.6.5
196
+ documentation_uri: https://www.rubydoc.info/gems/cfn-model/0.6.6
197
197
  homepage_uri: https://github.com/stelligent/cfn-model
198
- source_code_uri: https://github.com/stelligent/cfn-model/tree/v0.6.5
198
+ source_code_uri: https://github.com/stelligent/cfn-model/tree/v0.6.6
199
199
  post_install_message:
200
200
  rdoc_options: []
201
201
  require_paths: