Created
September 18, 2012 09:16
-
-
Save videlalvaro/3742202 to your computer and use it in GitHub Desktop.
macros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns claude.core | |
| (:use [clojure.data.json :only [read-json]])) | |
| (defmacro service-value [key] | |
| `(defn ~(symbol (str key)) [] (config ~(str key)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns claude.postgresql | |
| (:use claude.core) | |
| (:refer-clojure :exclude [name])) | |
| (defn config [key] | |
| (service-config "postgresql-9.0" key)) | |
| (service-value name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment