Sha256: bfa495d769fba42d027bcee75e5348681b14d6d791ed4b6c29c19e2e05395de6

Contents?: true

Size: 775 Bytes

Versions: 70

Compression:

Stored size: 775 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module ECS
        require 'fog/aws/parsers/ecs/base'

        class DeleteCluster < Fog::Parsers::AWS::ECS::Base
          def reset
            super
            @result = 'DeleteClusterResult'
            @response[@result] = {}
            @cluster = {}
          end

          def end_element(name)
            super
            case name
            when 'clusterName', 'clusterArn', 'status'
              @cluster[name] = value
            when 'registeredContainerInstancesCount', 'runningTasksCount', 'pendingTasksCount'
              @cluster[name] = value.to_i
            when 'cluster'
              @response[@result]['cluster'] = @cluster
            end
          end
        end
      end
    end
  end
end

Version data entries

70 entries across 68 versions & 3 rubygems

Version Path
fog-aws-0.8.1 lib/fog/aws/parsers/ecs/delete_cluster.rb
fog-aws-0.8.0 lib/fog/aws/parsers/ecs/delete_cluster.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/parsers/ecs/delete_cluster.rb
fog-aws-0.7.6 lib/fog/aws/parsers/ecs/delete_cluster.rb
fog-aws-0.7.5 lib/fog/aws/parsers/ecs/delete_cluster.rb
fog-aws-0.7.4 lib/fog/aws/parsers/ecs/delete_cluster.rb
fog-aws-0.7.3 lib/fog/aws/parsers/ecs/delete_cluster.rb
fog-aws-0.7.2 lib/fog/aws/parsers/ecs/delete_cluster.rb
fog-aws-0.6.0 lib/fog/aws/parsers/ecs/delete_cluster.rb
fog-aws-0.5.0 lib/fog/aws/parsers/ecs/delete_cluster.rb