org.jclouds.chef.predicates
Class CookbookVersionPredicates
java.lang.Object
org.jclouds.chef.predicates.CookbookVersionPredicates
public class CookbookVersionPredicates
- extends Object
Container for cookbook filters (predicates).
This class has static methods that create customized predicates to use with
ChefService.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookbookVersionPredicates
public CookbookVersionPredicates()
containsRecipe
public static com.google.common.base.Predicate<CookbookVersion> containsRecipe(String recipe)
- See Also:
containsRecipes(java.lang.String...)
containsRecipes
public static com.google.common.base.Predicate<CookbookVersion> containsRecipes(String... recipes)
- Note that the default recipe of a cookbook is its name. Otherwise, you
prefix the recipe with the name of the cookbook. ex.
apache2 will
be the default recipe where apache2::mod_proxy is a specific one
in the cookbook.
- Parameters:
recipes - names of the recipes.
- Returns:
- true if the cookbook version contains a recipe in the list.
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.