lib/minke/command.rb in minke-1.13.5 vs lib/minke/command.rb in minke-1.13.6
- old
+ new
@@ -50,11 +50,10 @@
return {
:config => @config,
:task_name => task,
:docker_runner => Minke::Docker::DockerRunner.new(logger, network_name),
:task_runner => task_runner,
- :error_helper => Minke::Helpers::Error.new,
:shell_helper => shell,
:logger_helper => logger,
:generator_config => generator_config,
:docker_compose_factory => Minke::Docker::DockerComposeFactory.new(shell, project_name, network_name),
:consul => consul,
@@ -63,17 +62,18 @@
:service_discovery => Minke::Docker::ServiceDiscovery.new(project_name, Minke::Docker::DockerRunner.new(logger), network_name)
}
end
def create_tasks task
+ dependencies = create_dependencies(task)
return {
- :bundler => Minke::Tasks::Bundle.new(create_dependencies(task)),
- :fetch => Minke::Tasks::Fetch.new(create_dependencies(task)),
- :build => Minke::Tasks::Build.new(create_dependencies(task)),
- :test => Minke::Tasks::Test.new(create_dependencies(task)),
- :build_image => Minke::Tasks::BuildImage.new(create_dependencies(task)),
- :cucumber => Minke::Tasks::Cucumber.new(create_dependencies(task)),
- :push => Minke::Tasks::Push.new(create_dependencies(task))
+ :bundler => Minke::Tasks::Bundle.new(dependencies),
+ :fetch => Minke::Tasks::Fetch.new(dependencies),
+ :build => Minke::Tasks::Build.new(dependencies),
+ :test => Minke::Tasks::Test.new(dependencies),
+ :build_image => Minke::Tasks::BuildImage.new(dependencies),
+ :cucumber => Minke::Tasks::Cucumber.new(dependencies),
+ :push => Minke::Tasks::Push.new(dependencies)
}
end
def fetch
if config.fetch != nil
\ No newline at end of file