Class: Fog::Parsers::AWS::ECS::DescribeTaskDefinition

Inherits:
TaskDefinition show all
Defined in:
lib/fog/aws/parsers/ecs/describe_task_definition.rb

Instance Method Summary collapse

Methods inherited from TaskDefinition

#end_element, #start_element

Methods inherited from Base

#end_element, #start_element

Instance Method Details

#resetObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/fog/aws/parsers/ecs/describe_task_definition.rb', line 8

def reset
  super
  @result = 'DescribeTaskDefinitionResult'
  @definition = 'taskDefinition'
  @response[@result] = {
    @definition => {
      'volumes'              => [],
      'containerDefinitions' => []
    }
  }
  @contexts = %w(volumes containerDefinitions command entryPoint environment links mountPoints portMappings volumesFrom)
  @context     = []
  @volume      = {}
  @host        = {}
  @container   = {}
  @environment = {}
  @mountpoint  = {}
  @portmapping = {}
  @volume_from = {}
end