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

    • CookbookVersionPredicates

      public CookbookVersionPredicates()
  • Method Details

    • containsRecipe

      public static com.google.common.base.Predicate<CookbookVersion> containsRecipe(String recipe)
      See Also:
    • 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.