Sha256: 87cf5951925e46e94ba7d9375233b58be306d34c6a4a35256fe9ac8dd527216a
Contents?: true
Size: 824 Bytes
Versions: 2
Compression:
Stored size: 824 Bytes
Contents
module Lono::Cfn class Plan < Base def run build.all if stack_exists?(@stack) for_update else for_create end end def for_update # Allow passing down of the build object from Cfn::Deploy so build.all only runs once. # Fallback to creating new build object but still pass one build object instance down. @options[:build] ||= build if @options[:iam] == true @options[:iam] = Lono::Cfn::Deploy::Iam.new(@options) end Template.new(@options).run Param.new(@options).run changeset = Changeset.new(@options) changeset.create changeset # return changeset so it can be executed end def for_create New.new(@options).run end def for_delete Delete.new(@options).run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lono-8.0.0.pre.rc4 | lib/lono/cfn/plan.rb |
lono-8.0.0.pre.rc3 | lib/lono/cfn/plan.rb |