Class: Lono::Sets::Preview::Param
- Inherits:
-
Cfn::Preview::Param
- Object
- AbstractBase
- Cfn::Base
- Cfn::Preview::Param
- Lono::Sets::Preview::Param
- Defined in:
- lib/lono/sets/preview/param.rb
Overview
Inherits from Lono::Cfn::Preview::Param and override what’s needed:
stack_parameters
Instance Method Summary collapse
Methods inherited from Cfn::Preview::Param
#existing_params, #generated_parameters, #new_params, #noecho_params, #optional_params, #subtract
Methods included from AwsServices
#cfn, #ec2, #iam, #s3, #s3_presigner, #s3_resource, #sts
Methods included from AwsServices::Helper
#rollback_complete?, #testing_update?
Methods included from AwsServices::StackSet
#find_stack_set, #stack_set_exists?
Methods included from AwsServices::Stack
Methods included from Cfn::Preview::DiffViewer
Methods inherited from Cfn::Base
#capabilities, #command_with_iam, #continue_update_rollback, #continue_update_rollback_sure?, #delete_rollback_stack, #exit_unless_updatable!, #generate_all, #notification_arns, #pretty_path, #prompt_for_iam, #quit, #rerun_with_iam?, #set_template_url!, #show_options, #stack_status, #starting_message, #status, #tags
Methods included from Utils::Sure
Methods inherited from AbstractBase
#initialize, #reinitialize, #template_path
Methods included from Blueprint::Root
#find_blueprint_root, #set_blueprint_root
Constructor Details
This class inherits a constructor from Lono::AbstractBase
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/lono/sets/preview/param.rb', line 7 def run return unless stack_set_exists?(@stack) generated_parameters # eager call generated_parameters so its output is above Parameter Diff Preview puts "Parameter Diff Preview:".color(:green) if [:noop] puts "NOOP CloudFormation parameters preview for #{@stack} update" return end write_to_tmp(existing_path, existing_params) write_to_tmp(new_path, new_params) show_diff(existing_path, new_path) end |
#stack_parameters ⇒ Object
23 24 25 |
# File 'lib/lono/sets/preview/param.rb', line 23 def stack_parameters stack_set_parameters end |
#stack_set_parameters ⇒ Object
27 28 29 30 |
# File 'lib/lono/sets/preview/param.rb', line 27 def stack_set_parameters resp = cfn.describe_stack_set(stack_set_name: @stack) resp.stack_set.parameters end |