Class: AwsCftTools::Runbooks::Retract

Inherits:
AwsCftTools::Runbook show all
Extended by:
Forwardable
Includes:
Common::Changesets, Templates
Defined in:
lib/aws_cft_tools/runbooks/retract.rb,
lib/aws_cft_tools/runbooks/retract/templates.rb

Overview

Retract - manage CloudFormation stack retraction

Examples:

% aws-cft retract -e QA               # delete all templates in the QA environment
% aws-cft retract -e Staging -n -v    # narrate the templates that would be deleted in Staging
% aws-cft retract -e Production -c -v # narrate the changes implied by deleting stacks in Production

Defined Under Namespace

Modules: Templates

Instance Attribute Summary

Attributes inherited from AwsCftTools::Runbook

#client, #options

Instance Method Summary collapse

Methods included from Templates

#free_templates, #template_folder_order, #templates

Methods inherited from AwsCftTools::Runbook

#_run, #checking, #debug, #detail, #doing, #initialize, #narrative, #operation

Constructor Details

This class inherits a constructor from AwsCftTools::Runbook

Instance Method Details

#runObject



28
29
30
31
32
33
34
35
36
# File 'lib/aws_cft_tools/runbooks/retract.rb', line 28

def run
  report_template_dependencies

  detail do
    tp(free_templates, ['filename'])
  end

  remove_deployed_templates
end