Class: Lono::Cfn::Deploy

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

Instance Method Summary collapse

Methods inherited from Base

#capabilities, #check_registration, #command_with_iam, #continue_update_rollback, #continue_update_rollback_sure?, #delete_rollback_stack, #exit_unless_updatable!, #generate_all, #pretty_path, #prompt_for_iam, #quit, #rerun_with_iam?, #run, #set_template_url!, #show_options, #stack_status, #starting_message, #status, #tags

Methods included from Utils::Sure

#sure?

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

#find_stack, #stack_exists?

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

#save(parameters) ⇒ Object



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

def save(parameters)
  if stack_exists?(@stack)
    Update.new(@options).save(parameters)
  else
    Create.new(@options).save(parameters)
  end
end