mirror of https://github.com/apache/jclouds.git
added usage statement to select all nodes
This commit is contained in:
parent
0396126a8f
commit
69a1b7a6aa
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue