lib/minke/tasks/task.rb in minke-1.9.7 vs lib/minke/tasks/task.rb in minke-1.9.8

- old
+ new

@@ -2,19 +2,20 @@ module Tasks ## # Task is a base implementation of a rake task such as fetch, build, etc class Task - def initialize config, task, generator_settings, docker_runner, docker_compose_factory, service_discovery, logger, helper + def initialize config, task, generator_settings, docker_runner, docker_compose_factory, service_discovery, logger, helper, system_runner @config = config @task = task @generator_settings = generator_settings @docker_runner = docker_runner @service_discovery = service_discovery @logger = logger @helper = helper @task_settings = config.send(task) + @system_runner = system_runner @build_image = @generator_settings.build_settings.docker_settings.image @build_image = config.build_image_for(task) unless config.build_image_for(task) == nil @build_file = config.build_docker_file_for(task) @@ -90,10 +91,9 @@ elsif url.type == 'bridge' address = @service_discovery.bridge_address_for ENV['DOCKER_NETWORK'], url.address, url.port "#{url.protocol}://#{address}#{url.path}" elsif url.type == 'public' address = @service_discovery.public_address_for url.address, url.port - "#{url.protocol}://#{address}#{url.path}" end end def log message, level