From 69a1b7a6aafdf0ba42429774f8791063f549d7bc Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Wed, 1 Jun 2011 12:06:02 -0700 Subject: [PATCH] added usage statement to select all nodes --- compute/src/main/clojure/org/jclouds/compute2.clj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compute/src/main/clojure/org/jclouds/compute2.clj b/compute/src/main/clojure/org/jclouds/compute2.clj index e9b839ef8e..00d3ef2ed3 100644 --- a/compute/src/main/clojure/org/jclouds/compute2.clj +++ b/compute/src/main/clojure/org/jclouds/compute2.clj @@ -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))))