Sha256: 9cdde39aac2f8a922d11e9955f27a473bef45590e05bcd123570984236227c45

Contents?: true

Size: 777 Bytes

Versions: 98

Compression:

Stored size: 777 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module CloudFormation
        class DescribeStackResources < Fog::Parsers::Base
          def reset
            @resource = {}
            @response = { 'StackResources' => [] }
          end

          def end_element(name)
            case name
            when 'StackId', 'StackName', 'LogicalResourceId', 'PhysicalResourceId', 'ResourceType', 'ResourceStatus'
              @resource[name] = value
            when 'member'
              @response['StackResources'] << @resource
              @resource = {}
            when 'RequestId'
              @response[name] = value
            when 'Timestamp'
              @resource[name] = Time.parse(value)
            end
          end
        end
      end
    end
  end
end

Version data entries

98 entries across 96 versions & 6 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-3.0.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-2.0.1 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-2.0.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-1.4.1 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-1.4.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-1.3.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-1.2.1 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-1.2.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-1.1.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-1.0.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.13.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.12.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.11.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.10.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.9.4 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.9.3 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.9.2 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.9.1 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb
fog-aws-0.9.0 lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb