private static void addDNSEntry(String alias, String cartridgeType) {
new DNSManager().addNewSubDomain(alias + "." + cartridgeType, System.getProperty(CartridgeConstants.ELB_IP));
}
private static SubscriptionInfo createSubscriptionResponse(CartridgeSubscription cartridgeSubscription, Repository repository) {
SubscriptionInfo subscriptionInfo = new SubscriptionInfo();
if (repository != null && repository.getRepoName() != null) {
subscriptionInfo.setRepositoryURL(convertRepoURL(repository.getRepoName()));
}
subscriptionInfo.setHostname(cartridgeSubscription.getHostName());
return subscriptionInfo;
}