lib/minke/command.rb in minke-1.13.9 vs lib/minke/command.rb in minke-1.13.10

- old
+ new

@@ -25,11 +25,12 @@ end task_runner = Minke::Tasks::TaskRunner.new ({ :rake_helper => Minke::Helpers::Rake.new, :copy_helper => Minke::Helpers::Copy.new, - :service_discovery => Minke::Docker::ServiceDiscovery.new(project_name, Minke::Docker::DockerRunner.new(logger), network_name) + :service_discovery => Minke::Docker::ServiceDiscovery.new(project_name, Minke::Docker::DockerRunner.new(logger), network_name), + :logger_helper => logger }) consul = Minke::Docker::Consul.new( { :health_check => Minke::Docker::HealthCheck.new(logger), @@ -68,13 +69,14 @@ return { :bundler => Minke::Tasks::Bundle.new(dependencies), :fetch => Minke::Tasks::Fetch.new(dependencies), :build => Minke::Tasks::Build.new(dependencies), :test => Minke::Tasks::Test.new(dependencies), + :run => Minke::Tasks::Run.new(dependencies), :build_image => Minke::Tasks::BuildImage.new(dependencies), - :cucumber => Minke::Tasks::Cucumber.new(dependencies), - :push => Minke::Tasks::Push.new(dependencies) + :cucumber => Minke::Tasks::Cucumber.new(dependencies), + :push => Minke::Tasks::Push.new(dependencies) } end def fetch if config.fetch != nil @@ -98,10 +100,17 @@ tasks = create_tasks :test tasks[:test].run end end + def run + if config.run != nil + tasks = create_tasks :run + tasks[:run].run + end + end + def build_image if config.test != nil test tasks = create_tasks :build tasks[:build_image].run @@ -119,6 +128,6 @@ tasks = create_tasks :push tasks[:push].run end end -end \ No newline at end of file +end