Sha256: ab63a257f22746f8adad012e7aa2393388a3e371c9c728c8c652068cc3c5f51e
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
# frozen_string_literal: true require 'mikoshi/plan' module Mikoshi class Plan class TaskDefinition < Base def initialize(yaml_path: nil, client: nil) super end def register_task_definition invoke_before_register_hooks resp = @client.register_task_definition(@data[:task_definition]) ENV['TASK_DEF_REVISION'] = resp.task_definition.revision.to_s invoke_after_register_hooks resp end private %w[before after].each do |step| define_method "invoke_#{step}_register_hooks" do invoke_hooks @data[:hooks]["#{step}_register".to_sym] unless @data.dig(:hooks, "#{step}_register".to_sym).nil? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mikoshi-0.2.1 | lib/mikoshi/plan/task_definition.rb |
mikoshi-0.2.0 | lib/mikoshi/plan/task_definition.rb |