Skip to content

Instantly share code, notes, and snippets.

@videlalvaro
Created September 18, 2012 09:16
Show Gist options
  • Select an option

  • Save videlalvaro/3742202 to your computer and use it in GitHub Desktop.

Select an option

Save videlalvaro/3742202 to your computer and use it in GitHub Desktop.
macros
(ns claude.core
(:use [clojure.data.json :only [read-json]]))
(defmacro service-value [key]
`(defn ~(symbol (str key)) [] (config ~(str key))))
(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