                              some-failing-step
                              some-successful-step)))
 
+(defn create-temp-dir []
+  (str (Files/createTempDirectory "lambdacd-cctest-sample" (into-array FileAttribute []))))
 
 (defn mk-routes [pipeline-routes cctray-pipeline-handler]
   (routes

    (GET "/cctray/pipeline.xml" [] cctray-pipeline-handler)))

(defn -main [& args]
  (let [home-dir (if (not (empty? args)) (first args) (util/create-temp-dir))
        config {:home-dir home-dir
                :name     "some sample pipeline"
                :ui-url   "http://localhost:8081/pipeline"}

            [lambdacd.steps.manualtrigger :as manualtrigger]
            [lambdacd.core :as lambdacd]
            [ring.server.standalone :as ring-server]
            [lambdacd.ui.ui-server :as ui]
            [lambdacd.runners :as runners]
            [lambdacd-cctray.core :as cctray]
            [ring.util.response :as resp])
  (:import (java.nio.file.attribute FileAttribute)
           (java.nio.file Files)))

(defn some-slow-step [args ctx]
  (shell/bash ctx "/"
