1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/requests/cloud_formation/get_template.rb
2015-01-02 09:42:20 -08:00

27 lines
781 B
Ruby

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