Created
May 21, 2013 21:00
-
-
Save tbatchelli/5623212 to your computer and use it in GitHub Desktop.
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
"good" | |
:extends *base-spec* | |
:phases | |
{:first (api/plan-fn (actions/exec-script | |
(println "first!"))) | |
:second (api/plan-fn | |
(actions/exec-checked-script | |
"say hello!" | |
("echo" "hello world!")))})) | |
(def bad-group | |
(api/group-spec | |
"bad" | |
:extends *base-spec* | |
:phases | |
{:second (api/plan-fn | |
(actions/exec-script | |
"hello" | |
(println "hello world!")) | |
(actions/exec-checked-script | |
"fail!" | |
("exit -1")))})) | |
(defn run | |
([] (run 2 2)) | |
([n] (run n 2)) | |
([n m] | |
(api/converge {good-group n | |
bad-group m} | |
:compute *compute* | |
:phase [:first :second]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment