Package org.jclouds.chef.predicates
Class CookbookVersionPredicates
java.lang.Object
org.jclouds.chef.predicates.CookbookVersionPredicates
Container for cookbook filters (predicates).
This class has static methods that create customized predicates to use with
ChefService
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
CookbookVersionPredicates
public CookbookVersionPredicates()
-
-
Method Details
-
containsRecipe
- See Also:
-
containsRecipes
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.
-