lib/minke/tasks/run.rb in minke-1.10.0 vs lib/minke/tasks/run.rb in minke-1.11.0
- old
+ new
@@ -3,19 +3,21 @@
class Run < Task
def run args = nil
puts "## Run application with docker compose"
- begin
- @compose.up
+ 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
- @compose.logs
+ run_with_block do
+ begin
+ compose.up
+ compose.logs
+ ensure
+ compose.down
end
-
- ensure
- @compose.down
- end
+ end
end
end
end
end