Sha256: 5e780840bfde678d77474e663e9a565bf328898d94b2ff4051cbdc26a85e10c2

Contents?: true

Size: 860 Bytes

Versions: 53

Compression:

Stored size: 860 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module CloudFormation
        class DescribeStackResource < Fog::Parsers::Base
          def reset
            @resource = {}
            @response = { 'StackResourceDetail' => {} }
          end

          def end_element(name)
            case name
            when 'Description','LogicalResourceId', 'Metadata', 'PhysicalResourceId', 'ResourceStatus', 'ResourceStatusReason', 'ResourceType', 'StackId', 'StackName' 
              @resource[name] = value
            when 'StackResourceDetail'
              @response['StackResourceDetail'] = @resource
              @resource = {}
            when 'RequestId'
              @response[name] = value
            when 'LastUpdatedTimestamp'
              @resource[name] = Time.parse(value)
            end
          end
        end
      end
    end
  end
end

Version data entries

53 entries across 51 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-3.0.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-2.0.1 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-2.0.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-1.4.1 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-1.4.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-1.3.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-1.2.1 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-1.2.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-1.1.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-1.0.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-0.13.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb
fog-aws-0.12.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resource.rb