Method: StackMaster::Validator#perform

Defined in:
lib/stack_master/validator.rb

#performObject



9
10
11
12
13
14
15
16
# File 'lib/stack_master/validator.rb', line 9

def perform
  template_body = TemplateCompiler.compile(@stack_definition.template_file_path)
  cf.validate_template(template_body: template_body)
  StackMaster.stdout.puts "Valid"
rescue Aws::CloudFormation::Errors::ValidationError => e
  $stderr.puts "Validation Failed"
  $stderr.puts e.message
end