Class: AwsHelpers::CloudFormation::DescribeStack

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_helpers/cloud_formation/describe_stack.rb

Instance Method Summary collapse

Constructor Details

#initialize(cloud_formation_client, stack_name) ⇒ DescribeStack


6
7
8
9
# File 'lib/aws_helpers/cloud_formation/describe_stack.rb', line 6

def initialize(cloud_formation_client, stack_name)
  @cloud_formation_client = cloud_formation_client
  @stack_name = stack_name
end

Instance Method Details

#executeObject


11
12
13
# File 'lib/aws_helpers/cloud_formation/describe_stack.rb', line 11

def execute
  @cloud_formation_client.describe_stacks(stack_name: @stack_name)[:stacks].first
end