Sha256: 7961e736d97d0c444876febd3c838866f1da7e913e6c596ca73072194e9a060f

Contents?: true

Size: 521 Bytes

Versions: 13

Compression:

Stored size: 521 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
          ensure
            compose.down
          end
        end
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
minke-1.12.3 lib/minke/tasks/run.rb
minke-1.12.2 lib/minke/tasks/run.rb
minke-1.12.0 lib/minke/tasks/run.rb
minke-1.11.9 lib/minke/tasks/run.rb
minke-1.11.8 lib/minke/tasks/run.rb
minke-1.11.7 lib/minke/tasks/run.rb
minke-1.11.6 lib/minke/tasks/run.rb
minke-1.11.5 lib/minke/tasks/run.rb
minke-1.11.4 lib/minke/tasks/run.rb
minke-1.11.3 lib/minke/tasks/run.rb
minke-1.11.2 lib/minke/tasks/run.rb
minke-1.11.1 lib/minke/tasks/run.rb
minke-1.11.0 lib/minke/tasks/run.rb