Class: Aws::Cfn::Dsl::Main

Inherits:
Base show all
Defined in:
lib/aws/cfn/dsl/main.rb

Instance Attribute Summary

Attributes inherited from Base

#items, #template

Attributes included from Options

#config, #opts

Instance Method Summary collapse

Methods inherited from Base

#ext2format, #format2exts, #formats_compatible?, #initialize, #load_template, #save_dsl

Methods included from DSL

#add_brick, #detect_type, included, #module_name, #rb_file

Methods included from Output

#close_output, included, #open_output, #write, #writeln

Methods included from PrettyPrint

#fmt, #fmt_key, #fmt_string, included, #is_array_of_strings_hack, #is_multi_line_hack, #is_single_line, #is_single_line_hack, #pprint, #pprint_cfn_resource, #pprint_cfn_section, #pprint_cfn_template, #pprint_value, #prelude_code, #print_with_wrapper

Methods included from Simplify

included, #simplify

Methods included from Maintainer

#i_am_maintainer, included, #maintainer, #maintainer_comment, #print_maintainer

Methods included from Options

included, #parse_options, #setup_config, #setup_options

Constructor Details

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

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
# File 'lib/aws/cfn/dsl/main.rb', line 8

def run

  parse_options

  load_template(@opts[:template])

  save_dsl(@opts[:directory])

end