Sha256: 6f6e23997353e36d5ac8f8d8ef8d29aaed0cf678c731eaa9d819e004ee54096f

Contents?: true

Size: 853 Bytes

Versions: 53

Compression:

Stored size: 853 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module CloudFormation
        class ListChangeSets < Fog::Parsers::Base
          def reset
            @change_set = {}
            @response = { 'Summaries' => [] }
          end

          def end_element(name)
            case name
            when 'ChangeSetId', 'ChangeSetName', 'Description', 'ExecutionStatus', 'StackId', 'StackName', 'Status', 'StackReason'
              @change_set[name] = value
            when 'member'
              @response['Summaries'] << @change_set
              @change_set = {}
            when 'RequestId'
              @response[name] = value
            when 'CreationTime'
              @change_set[name] = Time.parse(value)
            when 'NextToken'
              @response[name] = value
            end
          end
        end
      end
    end
  end
end

Version data entries

53 entries across 51 versions & 2 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.29.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.28.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.27.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.26.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.25.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.24.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.23.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.22.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.21.1 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.21.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.20.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.19.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.18.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.17.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.16.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.15.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.14.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.13.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb
fog-aws-3.12.0 lib/fog/aws/parsers/cloud_formation/list_change_sets.rb