 (defn cp-terminus-files
   "Stage all terminus files. Returns a sequence zipping project names and
   their terminus files."
-  [lein-project]
-  (let [dependencies (deputils/get-dependencies-with-jars lein-project)
-        files (for [{:keys [project jar]} dependencies
+  [dependencies]
+  (let [files (for [{:keys [project jar]} dependencies
                     :let [terminus-files (get-terminus-files-in jar)]
                     :when (not (empty? terminus-files))]
                 [project terminus-files jar])]


(def template-dir-prefix "./template")
(def staging-dir "./target/staging")
(def shared-config-prefix "ext/config/shared/")
(def docs-prefix "ext/docs/")
(def terminus-prefix "puppet/indirector")


             (fs/file staging-dir "ext" "debian" (format "%s.default.erb"
                                                         (:name lein-project)))))

(defn- get-config-files-in
  [jar]
  (deputils/find-files-in-dir-in-jar jar shared-config-prefix))

(defn cp-shared-config-files
  [dependencies]
  (let [files (for [{:keys [project jar]} dependencies]
                [project jar (get-config-files-in jar)])]
    (doseq [[project jar config-files] files]
      (deputils/cp-files-from-jar config-files jar staging-dir))
    ;; Return just a list of the files
    (mapcat last files)))

(defn cp-project-config-file
  [project-config-dir config-file]
