Sha256: c95ebf084572580bc32243c83a60ced890aada41069389cc0a71fa21cbb11e6f

Contents?: true

Size: 627 Bytes

Versions: 20

Compression:

Stored size: 627 Bytes

Contents

require 'shipitron'

module Shipitron
  module Server
    module EcsTaskDefs
      class MapParsedTemplates
        include Metaractor

        required :ecs_task_defs
        required :parsed_templates

        def call
          parsed_templates.each do |parsed|
            task_def = ecs_task_defs.find {|t| t.name == parsed.family }
            next if task_def.nil?
            task_def.params = parsed
          end
        end

        private
        def ecs_task_defs
          context.ecs_task_defs
        end

        def parsed_templates
          context.parsed_templates
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
shipitron-1.4.1 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.4.0 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.3.2 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.3.1 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.3.0 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.2.1 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.2.0 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.1.0 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.0.1 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-1.0.0 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.4.1 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.4.0 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.3.5 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.3.4 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.3.3 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.3.1 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.3.0 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.2.2 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.2.1 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb
shipitron-0.2.0 lib/shipitron/server/ecs_task_defs/map_parsed_templates.rb