https://github.com/sunng87/lein-control
A lein plugin for clojure control
https://github.com/sunng87/lein-control
Last synced: 8 months ago
JSON representation
A lein plugin for clojure control
- Host: GitHub
- URL: https://github.com/sunng87/lein-control
- Owner: sunng87
- Created: 2011-07-27T04:24:34.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-12-17T07:17:00.000Z (about 14 years ago)
- Last Synced: 2025-03-31T08:43:45.496Z (10 months ago)
- Language: Clojure
- Homepage:
- Size: 99.6 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
# lein-control
A leiningen plugin for clojure-control.
(https://github.com/killme2008/clojure-control).
## CAUTION !!
From clojure-control 0.2.3, the lein plugin has been merged into the toolkit. So this project is no longer maintained.
To install the plugin, just run:
lein plugin install control 0.2.3
or add control to your dev-depenendencies"
:dev-dependencies [[control "0.2.3"]]
## Usage
Generate a sample control file with:
lein control init
There will be a `control.clj` in your project home.
To define a custom control file, you have to specify the path to it in
your project.clj
:control {:control-file "YOUR-FILE-NAME"}
You can also find a sample control file in clojure-control project.
But there are some differences for lein-control:
* you don't have to add any (ns) (require) for lein-control
* you SHOULD NOT add (begin) in this file, lein-control will add it for you.
Check your cluster configuration:
lein control show your-cluster
Now, you can run your task with:
lein control run your-cluster your-task [args...]
## License
Copyright (C) 2011 Sun Ning
Distributed under the Eclipse Public License, the same as Clojure.