                                          (shuppet/LocalConfig.)
                                          (GitConfig.))
                signature/*aws-credentials* (if local?#
-                                      signature/default-keys-map
-                                      (aws-keys-map ~environment))]
+                                             signature/default-keys-map
+                                             (aws-keys-map ~environment))]
        ~@body)))
 
 (defn- tooling-service?


(defn- is-stopped?
  [env name]
  (if-let [services @no-schedule-services]
    (if (after? (local-now) (get-app-schedule env name))
        (not (empty? (reset! no-schedule-services (dissoc services (keyword (str env "-" name))))))
        true)))

(defn- can-apply-config?
  [env name]

(def default-stop-interval 30)

(deftype OnixAppNames [^String url]
  shuppet/ApplicationNames
  (list-names
    [_]
    (let [url (str url "/applications")
          response (client/get url {:as :json
                                    :throw-exceptions false})
          status (:status response)]
      (if (= 200 status)
        (get-in response [:body :applications])
        (cf/error {:title "Failed to get application list from Onix."
                   :url url
                   :status status
                   :message (:body response)})))))

(deftype GitConfig []
  shuppet/Configuration
  (as-string
    [_ environment filename]
    (git/get-data environment filename))
  (configure
    [_ appname master-only]
    (git/create-application appname master-only)))

(defn aws-keys-map
  [environment]
  {:key (env (keyword (str "service-aws-access-key-id-" environment)))
   :secret (env (keyword (str "service-aws-secret-access-key-" environment)))} )

                                        ;change env arg to flag
(defmacro with-ent-bindings
  "Specific Entertainment bindings"
  [environment & body]
