Skip to content

Commit

Permalink
Update documentation for fire!
Browse files Browse the repository at this point in the history
  • Loading branch information
mlimotte committed Jul 25, 2012
1 parent 0640595 commit 0fc1472
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions examples/sample-jobdef.clj
Expand Up @@ -329,9 +329,9 @@


; fire! returns right away. The jobflow-id is saved (context-get :jobflow-id). ; fire! returns right away. The jobflow-id is saved (context-get :jobflow-id).
; (fire! cluster steps) ; (fire! cluster steps)
; steps is a list (in-line or collection) of steps to run. OR steps is a "fn of eopts", ; steps is a list (in-line or collection) of steps to run, or a "fn of eopts",
; which returns a step or collection of steps. ; which returns a step (created by defstep or a StepConfig object) or a collection of steps.
; cluster is either a defcluster, or a fn that returns a single defcluster ; cluster is defined by a previous defcluster, or a fn that returns a single cluster.
(fire! sample-cluster sample-step) (fire! sample-cluster sample-step)


; If you want to block on cluster startup, where <stage> is one of ; If you want to block on cluster startup, where <stage> is one of
Expand Down
8 changes: 4 additions & 4 deletions src/main/clj/lemur/core.clj
Expand Up @@ -670,11 +670,11 @@ calls launch - take action (upload files, start cluster, etc)
(defn fire! (defn fire!
"Based on the command, take action using the given cluster and steps. "Based on the command, take action using the given cluster and steps.
[cluster steps*] [(cluster|cluster-fn) (steps*|step-fn)]
or
[cluster steps-fn]
You can provide one or more steps, either as a collection or a variable length The first arg is a cluster (created by defcluster) or a 'fn of eopts' that returns a cluster.
Scond arg is one or more steps, either as a collection or a variable length
argument list. Alternatively, you can provide a single 'fn of eopts' which returns argument list. Alternatively, you can provide a single 'fn of eopts' which returns
a step or collection of steps. Each step is a defstep or a StepConfig. a step or collection of steps. Each step is a defstep or a StepConfig.
Expand Down

0 comments on commit 0fc1472

Please sign in to comment.