protected void accept()

in usage-statistics-impl/src/jetbrains/buildServer/usageStatistics/impl/providers/CloudUsageStatisticsProvider.java [42:58]


  protected void accept(@NotNull final UsageStatisticsPublisher publisher, @NotNull final UsageStatisticsPresentationManager presentationManager) {
    //TODO handle if necessary
    //if (!myCloudManager.getIntegrationStatus())
    //  return;

    final Collection<? extends CloudType> cloudTypes = myCloudManager.getCloudTypes();
    final Map<String,String> cloudTypeCodeNames = new HashMap<String, String>();
    for (CloudType cloudType : cloudTypes) {
      if (TeamCityCloud.isCloud() && cloudType.getCloudCode().equals("tc")) {
        continue;
      }

      cloudTypeCodeNames.put(cloudType.getCloudCode(), cloudType.getDisplayName());
    }

    publishCloudInfo(publisher, presentationManager, cloudTypeCodeNames);
  }