-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix reloaded workflow and cljx circular dependency
- Loading branch information
Dom Kiva-Meyer
committed
Jun 12, 2014
1 parent
e3738fb
commit 75c93d6
Showing
3 changed files
with
40 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
(ns user | ||
(:require [clojure.tools.namespace.repl :refer [refresh]] | ||
[com.stuartsierra.component :as component] | ||
[omelette.main :as main])) | ||
|
||
(def system nil) | ||
|
||
(defn init [] | ||
(alter-var-root #'system (constantly (main/system 3000)))) | ||
|
||
(defn start [] | ||
(alter-var-root #'system component/start)) | ||
|
||
(defn stop [] | ||
(alter-var-root #'system #(when % (component/stop %)))) | ||
|
||
(defn go [] | ||
(init) | ||
(start)) | ||
|
||
(defn reset [] | ||
(stop) | ||
(refresh :after 'user/go)) | ||
|
||
(comment | ||
(pr system) | ||
(init) | ||
(start) | ||
(stop) | ||
(go) | ||
(reset) | ||
(main/browse system)) |
This file contains 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
This file was deleted.
Oops, something went wrong.