File: stop_task.rb

package info (click to toggle)
ruby-fog-aws 3.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,816 kB
  • sloc: ruby: 68,587; makefile: 6
file content (23 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Fog
  module Parsers
    module AWS
      module ECS
        require 'fog/aws/parsers/ecs/task'

        class StopTask < Fog::Parsers::AWS::ECS::Task
          def reset
            super
            @result = 'StopTaskResult'
            @response[@result] = {'task' => {}}
            @contexts = %w(task containers overrides networkBindings containerOverrides)
            @context             = []
            @task                = {}
            @container           = {}
            @net_binding         = {}
            @container_overrides = []
          end
        end
      end
    end
  end
end