Package 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 withChefService
.
-
-
Constructor Summary
Constructors Constructor Description CookbookVersionPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Predicate<CookbookVersion>
containsRecipe(String recipe)
static com.google.common.base.Predicate<CookbookVersion>
containsRecipes(String... recipes)
Note that the default recipe of a cookbook is its name.
-
-
-
Method Detail
-
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 whereapache2::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.
-
-