Class CookbookVersionPredicates


  • public class CookbookVersionPredicates
    extends Object
    Container for cookbook filters (predicates). This class has static methods that create customized predicates to use with ChefService.
    • Constructor Detail

      • CookbookVersionPredicates

        public CookbookVersionPredicates()
    • Method Detail

      • 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.