Class: Aws::Cfn::Compiler::Main

Inherits:
Base
  • Object
show all
Defined in:
lib/aws/cfn/compiler/main.rb

Instance Attribute Summary

Attributes inherited from Base

#items, #opts, #spec

Instance Method Summary collapse

Methods inherited from Base

#_uniq_names, #dynamic_item, #dynamic_reference, #initialize, #load_spec, #save_template, #validate

Methods included from Save

#save_inifile, #save_section

Methods included from Compile

#compile_spec, #compile_value, #find_conditions, #find_fns, #find_maps, #find_refs, #get_meta, #map_resource_reference, #merge, #meta

Methods included from Parse

#parse, #parse_meta, #parse_rb_file, #parse_section, #requirement, #sym_to_s

Methods included from Load

#get_brick_dirname, #get_brick_path, #get_file_set, #short_path

Methods included from Options

#find_mia, #hint_paths, #parse_options, #report_mia, #set_config_options, #set_config_path_option

Constructor Details

This class inherits a constructor from Aws::Cfn::Compiler::Base

Instance Method Details

#runObject


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/aws/cfn/compiler/main.rb', line 8

def run

  parse_options

  set_config_options

  load_spec @config[:specification]

  parse

  compiled = compile_spec

  validate(compiled)

  output_file = @config[:template] || 'compiled.json'
  save_template(output_file,compiled)

  @logger.step '*** Compiled Successfully ***'
end