Class: AwsAsCode::Task::Update

Inherits:
Base
  • Object
show all
Includes:
Concerns::AwsTaskHelpers
Defined in:
lib/aws_as_code/task/update.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#initialize, #logger

Constructor Details

This class inherits a constructor from AwsAsCode::Task::Base

Instance Method Details

#executeObject



8
9
10
11
12
13
14
15
16
# File 'lib/aws_as_code/task/update.rb', line 8

def execute
  semaphore.wait(stack) do
    cloud_formation
      .update_stack stack_name: config.stack,
                    template_url: template_object.public_url,
                    parameters: parameters
  end
  exit_code_for_stack_state stack.reload
end