Sha256: 1e94f3acd9650e99f3e852903b1bb88fc3e87cd01411274e10e64dde7ee463ea

Contents?: true

Size: 706 Bytes

Versions: 8

Compression:

Stored size: 706 Bytes

Contents

require 'shipitron'
require 'shipitron/client/load_application_config'
require 'shipitron/client/load_templates'
require 'shipitron/client/ensure_deploy_not_running'
require 'shipitron/client/run_ecs_tasks'

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

      required :application

      organize [
        LoadApplicationConfig,
        LoadTemplates,
        EnsureDeployNotRunning,
        RunEcsTasks
      ]

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

      private
      def application
        context.application
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shipitron-0.3.5 lib/shipitron/client/deploy_application.rb
shipitron-0.3.4 lib/shipitron/client/deploy_application.rb
shipitron-0.3.3 lib/shipitron/client/deploy_application.rb
shipitron-0.3.1 lib/shipitron/client/deploy_application.rb
shipitron-0.3.0 lib/shipitron/client/deploy_application.rb
shipitron-0.2.2 lib/shipitron/client/deploy_application.rb
shipitron-0.2.1 lib/shipitron/client/deploy_application.rb
shipitron-0.2.0 lib/shipitron/client/deploy_application.rb