Sha256: 5f0ebff47a9d5632bcacd52ff325dce5c813513f3e6cc31284b17146527d694d
Contents?: true
Size: 618 Bytes
Versions: 4
Compression:
Stored size: 618 Bytes
Contents
module Jets::Cfn class Teardown < Stack def run check_stack_exist! log.info "Final Delete Phase" Bucket.new.empty! remaining_resources end def remaining_resources stack_resources = cfn.describe_stack_resources(stack_name: stack_name).stack_resources resources = stack_resources.map(&:logical_resource_id).join(", ") log.debug "Remaining resources: #{resources}" log.debug "Final delete #{Jets.project.namespace.color(:green)}" cfn.delete_stack(stack_name: stack_name) cfn_status = Jets::Cfn::Status.new cfn_status.wait end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jets-6.0.5 | lib/jets/cfn/teardown.rb |
jets-6.0.4 | lib/jets/cfn/teardown.rb |
jets-6.0.3 | lib/jets/cfn/teardown.rb |
jets-6.0.2 | lib/jets/cfn/teardown.rb |