Sha256: 2d46a8d6862e734a0309e637c004c40cc4ddf0c740638575668aacd75b9f23be
Contents?: true
Size: 601 Bytes
Versions: 19
Compression:
Stored size: 601 Bytes
Contents
class Lono::Cfn::Delete include Lono::Cfn::AwsServices include Lono::Cfn::Util def initialize(stack_name, options={}) @stack_name = stack_name @options = options @project_root = options[:project_root] || '.' end def run message = "Deleted #{@stack_name} stack." if @options[:noop] puts "NOOP #{message}" else are_you_sure?(:delete) if stack_exists?(@stack_name) cfn.delete_stack(stack_name: @stack_name) puts message else puts "#{@stack_name.inspect} stack does not exist".colorize(:red) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems