protected Object doExecute()

in commands/src/main/java/org/jclouds/karaf/commands/compute/ProviderInfoCommand.java [27:53]


   protected Object doExecute() throws Exception {
      for (ComputeService service : getComputeServices()) {
         String txt = "Instances on " + service.getContext().unwrap().getId();
         System.out.println(txt);
         for (int i = 0; i < txt.length(); i++) {
            System.out.print('=');
         }
         System.out.println();

         System.out.println("  Locations");
         System.out.println("  ---------");
         printLocations(service,  System.out);

         System.out.println("  Images");
         System.out.println("  ------");
         printImages(service, service.listImages(),  System.out);

         System.out.println("  Hardware");
         System.out.println("  --------");
         printHardwares(service, service.listHardwareProfiles(),  System.out);

         System.out.println("  Nodes");
         System.out.println("  -----");
         printNodes(service, service.listNodes(), System.out);
      }
      return null;
   }