    (conj "prod")))
 
 (defn- repo-branch
-  "Only look for the prod branch when env = prod"
-  [env name]
-  (if (and (not= env name) (= env "prod"))
+  "Only look for the prod branch when environment = prod"
+  [environment name]
+  (if (and (not= environment name) (= environment "prod"))
     "prod"
     "master"))
 


(defn- *get-data
  "Fetches the data corresponding to the given application from Git"
  [env name]
  (if-let [data (data-from-repo name)]
    data
    (send-error 404 "Missing Shuppet configuration")))


    false))

(defn- data-from-repo
  [environment name]
  (try
    (let [file (str name ".clj")
          branch (repo-branch environment name)]
      (:content (repos/contents organisation name file {:ref branch
                                                        :str? true})))
    (catch Exception e
