Class: Minke::Tasks::Run
Instance Method Summary collapse
Methods inherited from Task
#create_container_image, #initialize, #run_command_in_container, #run_with_block
Constructor Details
This class inherits a constructor from Minke::Tasks::Task
Instance Method Details
#run(args = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/minke/tasks/run.rb', line 5 def run args = nil puts "## Run application with docker compose" compose_file = @config.compose_file_for(@task_name) compose_file = File.(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 |