Sha256: 3514bb42bc2a25031c9e55e3f20958ac5c11f507632b4d32253065fda3053fef

Contents?: true

Size: 783 Bytes

Versions: 2

Compression:

Stored size: 783 Bytes

Contents

module Fog
  module AWS
    class CloudFormation
      class Real

        require 'fog/aws/parsers/cloud_formation/get_template'

        # Describe stacks.
        #
        # @param stack_name [String] stack name to get template from
        #
        # @return [Excon::Response]
        #   * body [Hash]:
        #     * TemplateBody [String] - structure containing the template body (json)
        #
        # @see http://docs.amazonwebservices.com/AWSCloudFormation/latest/APIReference/API_GetTemplate.html

        def get_template(stack_name)
          request(
            'Action'    => 'GetTemplate',
            'StackName' => stack_name,
            :parser     => Fog::Parsers::AWS::CloudFormation::GetTemplate.new
          )
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.22.0 lib/fog/aws/requests/cloud_formation/get_template.rb
fog-1.21.0 lib/fog/aws/requests/cloud_formation/get_template.rb