class CloudFormationTool::CloudFormation::NestedStack
Public Class Methods
new(props, tpl)
click to toggle source
# File lib/cloud_formation_tool/cloud_formation/nested_stack.rb, line 7 def initialize(props, tpl) @tpl = tpl @data = props if props.key?('Template') path = props['Template'] path = if path.start_with? "/" then path else "#{@tpl.basedir}/#{path}" end @content = CloudFormation.new(path).to_yaml @data['TemplateURL'] = upload(make_filename('yaml'), @content, mime_type: 'text/yaml', gzip: false) @data.delete('Template') end end
Public Instance Methods
to_cloudformation()
click to toggle source
# File lib/cloud_formation_tool/cloud_formation/nested_stack.rb, line 19 def to_cloudformation @data end