Skip to content

Commit

Permalink
Upgraded to be compatible with lein2
Browse files Browse the repository at this point in the history
Removed dependency on clojure itself
changed to version 1.0.0-SNAPSHOT
  • Loading branch information
Anthony Marcar committed Jun 15, 2012
1 parent 3f7cf1f commit f464313
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,3 +7,4 @@ pom.xml
*ipr
*iws
*iml
target/
5 changes: 2 additions & 3 deletions project.clj
@@ -1,5 +1,4 @@
;;;; Copyright © 2011 José Pablo Fernández Silva
(defproject lein-lobos "0.8.0-SNAPSHOT"
(defproject lein-lobos "1.0.0-SNAPSHOT"
:description "Leiningen plugin for running Lobos commands."
:dependencies [[org.clojure/clojure "1.2.1"]]
:dev-dependencies [[lein-clojars "0.6.0"]])
:eval-in-leiningen true)
6 changes: 3 additions & 3 deletions src/leiningen/lobos.clj
@@ -1,21 +1,21 @@
;;;; Copyright © 2011 José Pablo Fernández Silva
(ns leiningen.lobos
(:use [leiningen.help :only (help-for)]
[leiningen.compile :only [eval-in-project]]))
[leiningen.core.eval :only [eval-in-project]]))

(defn migrate [project]
(eval-in-project project
`(do
(lobos.connectivity/open-global (assoc lobos.config/db :unsafe true)) ; Establish a connection only when none exists (unsafe true)
(lobos.core/migrate))
nil nil '(require 'lobos.config 'lobos.core 'lobos.connectivity)))
'(require 'lobos.config 'lobos.core 'lobos.connectivity)))

(defn rollback [project]
(eval-in-project project
`(do
(lobos.connectivity/open-global (assoc lobos.config/db :unsafe true)) ; Establish a connection only when none exists (unsafe true)
(lobos.core/rollback))
nil nil '(require 'lobos.config 'lobos.core 'lobos.connectivity)))
'(require 'lobos.config 'lobos.core 'lobos.connectivity)))

(defn lobos
"Run Lobos commands."
Expand Down

0 comments on commit f464313

Please sign in to comment.