Class: ReferenceValidator
- Inherits:
-
Object
- Object
- ReferenceValidator
- Defined in:
- lib/cfn-model/validator/reference_validator.rb
Instance Method Summary collapse
Instance Method Details
#unresolved_references(cloudformation_hash) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cfn-model/validator/reference_validator.rb', line 4 def unresolved_references(cloudformation_hash) if cloudformation_hash['Parameters'].nil? parameter_keys = [] else parameter_keys = cloudformation_hash['Parameters'].keys end resource_keys = cloudformation_hash['Resources'].keys missing_refs = all_references(cloudformation_hash) - Set.new(parameter_keys + resource_keys) missing_refs end |