Permalink
Browse files

Use useful.config instead of clj-config (one less dependency).

  • Loading branch information...
Raynes committed Jun 29, 2012
1 parent 7dceac7 commit 9da4a90e7481a743ff43beab89a8260513637fd3
Showing with 4 additions and 7 deletions.
  1. +1 −2 project.clj
  2. 0 { → resources}/config.clj
  3. +3 −5 src/foreclojure/config.clj
View
@@ -8,12 +8,11 @@
[congomongo "0.1.9"]
[org.jasypt/jasypt "1.7"]
[cheshire "4.0.0"]
- [useful "0.8.3-alpha3"]
+ [useful "0.8.3-alpha4"]
[amalloy/ring-gzip-middleware "0.1.2"]
[amalloy/mongo-session "0.0.2"]
[innuendo "0.1.4"]
[ring "1.1.1"]
- [clj-config "0.1.0"]
[incanter/incanter-core "1.3.0"]
[incanter/incanter-charts "1.3.0"]
[commons-lang "2.6"]
File renamed without changes.
@@ -1,10 +1,8 @@
(ns foreclojure.config
- (:use [clojure.java.io :only [file]]
- [clj-config.core :only [safely read-config]]))
+ (:require [clojure.java.io :refer [file]]
+ [useful.config :refer [load-config]]))
-(def config-file (file (System/getProperty "user.dir") "config.clj"))
-
-(def config (safely read-config config-file))
+(def config (load-config "config.clj"))
;; Defs both for convenience and compile-time verification of simple settings
(def repo-url (or (:repo-url config)

0 comments on commit 9da4a90

Please sign in to comment.