All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tasks.elastic.package.scala Maven / Gradle / Ivy

The newest version!
package tasks

import tasks.util.config.TasksConfig
import cats.effect._
package object elastic {
  def makeElasticSupport(implicit config: TasksConfig): Resource[IO,Option[ElasticSupport]] =
    config.elasticSupport match {
      case ""         => Resource.pure(None)
      case "NOENGINE" => Resource.pure(None)
      case reflective =>
          tasks.util
            .reflectivelyInstantiateObject[ElasticSupportFromConfig](reflective)
            .apply(config).map(Some(_))

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy