Permalink
Browse files

updates README

  • Loading branch information...
1 parent 13a0081 commit 83b37ddcf0aa27ed77a36e0fbaeb1939cddd0844 @videlalvaro committed Sep 19, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
View
@@ -28,20 +28,22 @@ Then on your code you can use it this way:
```clojure
(ns my.namespace
- (use: [claude.core :as cf]
- [langohr.core :as lhc]
- [monger.core :as mg]))
+ (require: [claude.core :as cf]
+ [claude.mongodb :as cfm]
+ [claude.rabbitmq :as cfr]
+ [langohr.core :as lhc]
+ [monger.core :as mg]))
(defonce default-url "mongodb://127.0.0.1/mydb")
(defn mongo-connect []
(if (cf/cloudfoundry?)
- (mg/connect-via-uri! (cf/mongo-url))
+ (mg/connect-via-uri! (cfm/url))
(mg/connect-via-uri! default-url)))
(defn rabbitmq-connect []
(if (cf/cloudfoundry?)
- (lhc/connect (lhc/settings-from (cf/rabbit-url)))
+ (lhc/connect (lhc/settings-from (cfr/url)))
(lhc/connect)))
(defonce ^Connection conn (rabbitmq-connect))

0 comments on commit 83b37dd

Please sign in to comment.