Sha256: 459f277c2f10d9187db5c56c6349fc9fa12ad5d94753abd08cebba256df0948e

Contents?: true

Size: 737 Bytes

Versions: 15

Compression:

Stored size: 737 Bytes

Contents

require 'shipitron'
require 'shipitron/client/register_ecs_task_definitions'
require 'shipitron/client/create_ecs_services'

module Shipitron
  module Client
    class BootstrapApplication
      include Metaractor
      include Interactor::Organizer

      required :application
      required :region
      required :cluster_name
      required :service_count
      required :task_def_directory
      required :service_directory

      organize [
        RegisterEcsTaskDefinitions,
        CreateEcsServices
      ]

      def call
        Logger.info "==> Bootstrapping #{application}"
        super
        Logger.info "==> Done"
      end

      private
      def application
        context.application
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
shipitron-1.2.1 lib/shipitron/client/bootstrap_application.rb
shipitron-1.2.0 lib/shipitron/client/bootstrap_application.rb
shipitron-1.1.0 lib/shipitron/client/bootstrap_application.rb
shipitron-1.0.1 lib/shipitron/client/bootstrap_application.rb
shipitron-1.0.0 lib/shipitron/client/bootstrap_application.rb
shipitron-0.4.1 lib/shipitron/client/bootstrap_application.rb
shipitron-0.4.0 lib/shipitron/client/bootstrap_application.rb
shipitron-0.3.5 lib/shipitron/client/bootstrap_application.rb
shipitron-0.3.4 lib/shipitron/client/bootstrap_application.rb
shipitron-0.3.3 lib/shipitron/client/bootstrap_application.rb
shipitron-0.3.1 lib/shipitron/client/bootstrap_application.rb
shipitron-0.3.0 lib/shipitron/client/bootstrap_application.rb
shipitron-0.2.2 lib/shipitron/client/bootstrap_application.rb
shipitron-0.2.1 lib/shipitron/client/bootstrap_application.rb
shipitron-0.2.0 lib/shipitron/client/bootstrap_application.rb