Class: Sfn::Command::Print

Inherits:
Sfn::Command
  • Object
show all
Includes:
Sfn::CommandModule::Base, Sfn::CommandModule::Stack, Sfn::CommandModule::Template
Defined in:
lib/sfn/command/print.rb

Overview

Print command

Constant Summary

Constants included from Sfn::CommandModule::Template

Sfn::CommandModule::Template::MAX_PARAMETER_ATTEMPTS, Sfn::CommandModule::Template::TEMPLATE_IGNORE_DIRECTORIES

Instance Method Summary collapse

Methods included from Sfn::CommandModule::Stack

included

Methods included from Sfn::CommandModule::Template

included

Methods included from Sfn::CommandModule::Base

included

Methods inherited from Sfn::Command

#config, #initialize

Constructor Details

This class inherits a constructor from Sfn::Command

Instance Method Details

#execute!Object



13
14
15
16
17
18
19
20
21
# File 'lib/sfn/command/print.rb', line 13

def execute!
  config[:print_only] = true
  file = load_template_file
  file.delete('sfn_nested_stack')
  file = Sfn::Utils::StackParameterScrubber.scrub!(file)
  file = translate_template(file)

  ui.puts _format_json(file)
end