Method: Lono::Configset::Combiner#validate_structure!

Defined in:
lib/lono/configset/combiner.rb

#validate_structure!(name, metadata) ⇒ Object



134
135
136
137
138
139
140
# File 'lib/lono/configset/combiner.rb', line 134

def validate_structure!(name, )
  return if .is_a?(Hash) && .dig("Metadata", "AWS::CloudFormation::Init")

  puts "ERROR: The #{name} configset does not appear to have a AWS::CloudFormation::Init key".color(:red)
  puts "Please double check the #{name} configset.yml structure"
  exit 1
end