Class: Lono::Cfn::Deploy

Inherits:
Base
  • Object
show all
Defined in:
lib/lono/cfn/deploy.rb

Instance Method Summary collapse

Methods inherited from Base

#build_files, #build_scripts, #capabilities, #check_files, #check_for_errors, #command_with_iam, #continue_update_rollback, #continue_update_rollback_sure?, #delete_rollback_stack, #ensure_s3_bucket_exist, #exit_unless_updatable!, #generate_all, #generate_templates, #initialize, #param_generator, #post_process_templates, #pretty_path, #prompt_for_iam, #quit, #run, #set_template_body!, #show_parameters, #stack_status, #starting_message, #status, #switch_current, #tags, #upload_files, #upload_scripts, #upload_templates

Methods included from Util

#are_you_sure?

Methods included from Suffix

#allow_suffix?, #append_suffix, #random_suffix, #remove_suffix, #stack_name_suffix

Methods included from Lono::Conventions

#template_param_convention

Methods included from Blueprint::Root

#bundler_groups, #find_blueprint_root, #require_bundle_gems, #set_blueprint_root

Methods included from AwsServices

#cfn, #ec2, #iam, #s3, #s3_presigner, #s3_resource, #sts

Methods included from AwsServices::Util

#find_stack, #rollback_complete?, #stack_exists?, #testing_update?

Constructor Details

This class inherits a constructor from Lono::Cfn::Base

Instance Method Details

#save_stack(params) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/lono/cfn/deploy.rb', line 3

def save_stack(params)
  if stack_exists?(@stack_name)
    Update.new(@stack_name, @options).update_stack(params)
  else
    Create.new(@stack_name, @options).create_stack(params)
  end
end