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

pallet.task.vmfest_script.clj Maven / Gradle / Ivy

(ns pallet.task.vmfest-script
  "A task for running vmfest scripts"
  (:require
   [pallet.compute :as compute]
   [pallet.compute.vmfest :as vmfest]
   [pallet.core :as core]))

(def ^{:dynamic true} *vmfest*)

(defn vmfest-script
  "A task for running vmfest scripts.

       lein pallet vmfest-script filename

   The file should be a clojure script that will be executed. *vmfest* is
   bound to the vmfest compute service"
  [request filename]
  (binding [*vmfest* (compute/compute-service :virtualbox)
            *ns* (the-ns 'pallet.task.vmfest-script)]
    (load-file (name filename))))




© 2015 - 2025 Weber Informatics LLC | Privacy Policy