Logic for performing the The entire list of possible init steps is below, as impls for the | (ns metabase.plugins.init-steps (:require [metabase.plugins.classloader :as classloader] [metabase.plugins.jdbc-proxy :as jdbc-proxy] [metabase.util :as u] [metabase.util.log :as log])) |
Perform a driver init step. Steps are listed in | (defmulti ^:private do-init-step! {:arglists '([m])} (comp keyword :step)) |
(defmethod do-init-step! :load-namespace [{nmspace :namespace}] (log/debug (u/format-color 'blue "Loading plugin namespace %s..." nmspace)) (classloader/require (symbol nmspace))) | |
(defmethod do-init-step! :register-jdbc-driver [{class-name :class}] (jdbc-proxy/create-and-register-proxy-driver! class-name)) | |
Perform the initialization steps for a Metabase plugin as specified under | (defn do-init-steps! [init-steps] (doseq [step init-steps] (do-init-step! step))) |