Sha256: 3988b6ec259f94a2bde58735f46df1336e73dbd58c5c4faebbbb6bc85e171ee0

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 Bytes

Contents

module Minke
  module Tasks
    class Run < Task

      def run args = nil
        puts "## Run application with docker compose"

        compose_file = @config.compose_file_for(@task_name)
        compose_file = File.expand_path(compose_file)
        compose = @docker_compose_factory.create compose_file unless compose_file == nil

        run_with_block do
          begin
            compose.up
            compose.logs
          rescue SystemExit, Interrupt
            puts "Stopping...."
            raise
          ensure
            compose.down
          end
        end
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minke-1.12.5 lib/minke/tasks/run.rb
minke-1.12.4 lib/minke/tasks/run.rb