Sha256: 74bb31a323c2ffd0da358170ad715d4767accbaad0720602b28f9f73fe1dc4e8
Contents?: true
Size: 674 Bytes
Versions: 20
Compression:
Stored size: 674 Bytes
Contents
module Cody class Delete include AwsServices def initialize(options) @options = options @project_name = options[:project_name] || inferred_project_name @stack_name = options[:stack_name] || inferred_stack_name(@project_name) end def run message = "Deleted #{@stack_name} stack." if @options[:noop] puts "NOOP #{message}" else are_you_sure?(@stack_name, :delete) if stack_exists?(@stack_name) cfn.delete_stack(stack_name: @stack_name) puts message else puts "#{@stack_name.inspect} stack does not exist".color(:red) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems