Sha256: 19f2597f20f7b3b93f5273201685bce13485f474f0d5490dd8412f0f8c31c85c
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
Contents
class Lono::Cfn::Plan class Template < Base def run return unless Lono.config.diff.template @build.all logger.info "Template Changes:".color(:green) download_existing_cfn_template diff = Diff::File.new(mode: Lono.config.diff.template) diff.show(existing_template_path, new_cfn_template) logger.info "" # newline end def download_existing_cfn_template resp = cfn.get_template(stack_name: @stack, template_stage: "Original") FileUtils.mkdir_p(File.dirname(existing_template_path)) IO.write(existing_template_path, resp.template_body) end # for clarity def new_cfn_template @blueprint.output_path end def existing_template_path "/tmp/lono/diff/template/existing.yml" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lono-8.0.0.pre.rc2 | lib/lono/cfn/plan/template.rb |
lono-8.0.0.pre.rc1 | lib/lono/cfn/plan/template.rb |