Sha256: dc0ddc4479c54251aa43c6f987d4ad7f3466869500f6387efa9048a338c373ea
Contents?: true
Size: 706 Bytes
Versions: 9
Compression:
Stored size: 706 Bytes
Contents
class Cody::CLI class Delete include Cody::AwsServices def initialize(options) @options = options @project_name = options[:project_name] || inferred_project_name @stack_name = normalize_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
9 entries across 9 versions & 1 rubygems