added usage statement to select all nodes

This commit is contained in:
Adrian Cole 2011-06-01 12:06:02 -07:00
parent 0396126a8f
commit 69a1b7a6aa
1 changed files with 5 additions and 1 deletions

View File

@ -225,7 +225,11 @@ Here's an example of creating and running a small linux node in the group webser
(defn destroy-nodes-matching
"Destroy all the nodes in the fn pred.
pred should be a fn of one argument that takes a ComputeMetadata and returns true or false."
pred should be a fn of one argument that takes a ComputeMetadata and returns true or false.
;; destroy all nodes
(destroy-nodes-matching compute (constantly true))
"
([#^ComputeService compute pred]
(.destroyNodesMatching compute (to-predicate pred))))