Class: Cody::Stack::Update

Inherits:
Base
  • Object
show all
Defined in:
lib/cody/stack/update.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #run

Methods included from Status

#status

Methods included from AwsServices

#cfn, #codebuild

Methods included from AwsServices::Helpers

#are_you_sure?, #find_stack, #inferred_project_name, #inferred_stack_name, #normalize_stack_name, #project_name_convention, #stack_exists?

Constructor Details

This class inherits a constructor from Cody::Stack::Base

Instance Method Details

#performObject



3
4
5
6
7
8
9
10
# File 'lib/cody/stack/update.rb', line 3

def perform
  cfn.update_stack(
    stack_name: @stack_name,
    template_body: YAML.dump(@template),
    capabilities: ["CAPABILITY_IAM"]
  )
  puts "Updating stack #{@stack_name}. Check CloudFormation console for status."
end