Sha256: e0fa5ac361d22c0847a811c208760e93fedf3695179bb281015dd2d7306c2dec

Contents?: true

Size: 637 Bytes

Versions: 11

Compression:

Stored size: 637 Bytes

Contents

module Minke
  module Tasks
    class Run < Task

      def run args = nil
        @logger.info "## 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
            @logger.info "Stopping...."
            raise SystemExit
          ensure
            compose.down
          end
        end
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
minke-1.13.10 lib/minke/tasks/run.rb
minke-1.13.9 lib/minke/tasks/run.rb
minke-1.13.8 lib/minke/tasks/run.rb
minke-1.13.7 lib/minke/tasks/run.rb
minke-1.13.6 lib/minke/tasks/run.rb
minke-1.13.5 lib/minke/tasks/run.rb
minke-1.13.4 lib/minke/tasks/run.rb
minke-1.13.3 lib/minke/tasks/run.rb
minke-1.13.2 lib/minke/tasks/run.rb
minke-1.13.1 lib/minke/tasks/run.rb
minke-1.13.0 lib/minke/tasks/run.rb