lib/minke/tasks/run.rb in minke-1.13.10 vs lib/minke/tasks/run.rb in minke-1.13.11

- old
+ new

@@ -7,18 +7,20 @@ 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 + run_with_block do |pre_func, post_func| begin compose.up + pre_func.call compose.logs rescue SystemExit, Interrupt @logger.info "Stopping...." raise SystemExit ensure compose.down + post_func.call end end end end