@Test public void testAddToRunList() { app = ApplicationBuilder.newManagedApp(TestApplication.class); ChefConfigs.addToLaunchRunList(app, "a", "b"); Set<? extends String> runs = app.getConfig(ChefConfig.CHEF_LAUNCH_RUN_LIST); Assert.assertEquals(runs.size(), 2, "runs="+runs); Assert.assertTrue(runs.contains("a")); Assert.assertTrue(runs.contains("b")); }
public static void addToLaunchRunList(EntitySpec<?> entity, String ...recipes) { for (String recipe: recipes) entity.configure(ChefConfig.CHEF_LAUNCH_RUN_LIST, SetModifications.addItem(recipe)); }
ChefConfigs { public static void addToLaunchRunList(EntitySpec<?> entity, String ...recipes) { for (String recipe: recipes) entity.configure(ChefConfig.CHEF_LAUNCH_RUN_LIST, SetModifications.addItem(recipe)); } }
ChefConfigs { public static void addToLaunchRunList(EntitySpec<?> entity, String ...recipes) { for (String recipe: recipes) entity.configure(ChefConfig.CHEF_LAUNCH_RUN_LIST, SetModifications.addItem(recipe)); }  }
ChefConfigs { public static void addToLaunchRunList(EntitySpec<?> entity, String ...recipes) { for (String recipe: recipes) entity.configure(ChefConfig.CHEF_LAUNCH_RUN_LIST, SetModifications.addItem(recipe)); }  static void addToLaunchRunList(EntitySpec<?> entity, String ...recipes); static void addToLaunchRunList(EntityInternal entity, String ...recipes); static void addToCookbooksFromGithub(EntitySpec<?> entity, String ...cookbookNames); static void addToCookbooksFromGithub(EntityInternal entity, String ...cookbookNames); static String getGithubOpscodeRepo(String cookbookName); static String getGithubOpscodeRepo(String cookbookName, String tag); static void addToCookbooksFromGithub(EntitySpec<?> entity, String cookbookName, String cookbookUrl); static void addToCookbooksFromGithub(EntityInternal entity, String cookbookName, String cookbookUrl); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntityInternal entity, Map<? extends Object,? extends Object> attributesMap); static void setLaunchAttribute(EntitySpec<?> entity, String rootAttribute, Object value); static void setLaunchAttribute(EntityInternal entity, String rootAttribute, Object value); static T getRequiredConfig(Entity entity, ConfigKey<T> key); }
ChefConfigs { public static void addToLaunchRunList(EntitySpec<?> entity, String ...recipes) { for (String recipe: recipes) entity.configure(ChefConfig.CHEF_LAUNCH_RUN_LIST, SetModifications.addItem(recipe)); }  static void addToLaunchRunList(EntitySpec<?> entity, String ...recipes); static void addToLaunchRunList(EntityInternal entity, String ...recipes); static void addToCookbooksFromGithub(EntitySpec<?> entity, String ...cookbookNames); static void addToCookbooksFromGithub(EntityInternal entity, String ...cookbookNames); static String getGithubOpscodeRepo(String cookbookName); static String getGithubOpscodeRepo(String cookbookName, String tag); static void addToCookbooksFromGithub(EntitySpec<?> entity, String cookbookName, String cookbookUrl); static void addToCookbooksFromGithub(EntityInternal entity, String cookbookName, String cookbookUrl); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntityInternal entity, Map<? extends Object,? extends Object> attributesMap); static void setLaunchAttribute(EntitySpec<?> entity, String rootAttribute, Object value); static void setLaunchAttribute(EntityInternal entity, String rootAttribute, Object value); static T getRequiredConfig(Entity entity, ConfigKey<T> key);  }