Package org.jclouds.chef.domain

Examples of org.jclouds.chef.domain.CookbookDefinition$Version$Builder


      this.parser = parser;
   }

   @Override
   public Set<String> apply(HttpResponse response) {
      CookbookDefinition def = getFirst(parser.apply(response).values(), null);
      return newLinkedHashSet(transform(def.getVersions(), new Function<Version, String>() {
         @Override
         public String apply(Version input) {
            return input.getVersion();
         }
      }));
View Full Code Here


      Set<Map.Entry<String, CookbookDefinition>> result = parser.apply(response).entrySet();
      return newLinkedHashSet(transform(result, new Function<Map.Entry<String, CookbookDefinition>, CookbookDefinition>() {
         @Override
         public CookbookDefinition apply(Map.Entry<String, CookbookDefinition> input) {
            String cookbookName = input.getKey();
            CookbookDefinition def = input.getValue();
            return CookbookDefinition.builder() //
                   .from(def) //             
                   .name(cookbookName) //
                   .build();
         }
View Full Code Here

   @Override
   public CookbookDefinition apply(HttpResponse response) {
      Map<String, CookbookDefinition> result = parser.apply(response);
      String cookbookName = result.keySet().iterator().next();
      CookbookDefinition def = result.values().iterator().next();
      return CookbookDefinition.builder() //
             .from(def) //
             .name(cookbookName) //
             .build();
   }
View Full Code Here

TOP

Related Classes of org.jclouds.chef.domain.CookbookDefinition$Version$Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.