Coverage Report - org.kuali.maven.plugins.dnsme.mojo.AddDomainMojo
 
Classes in this File Line Coverage Branch Coverage Complexity
AddDomainMojo
0%
0/6
N/A
1
 
 1  
 package org.kuali.maven.plugins.dnsme.mojo;
 2  
 
 3  
 import org.apache.maven.plugin.MojoExecutionException;
 4  
 import org.apache.maven.plugin.MojoFailureException;
 5  
 import org.kuali.maven.plugins.dnsme.DNSMEClient;
 6  
 import org.kuali.maven.plugins.dnsme.beans.Domain;
 7  
 
 8  
 /**
 9  
  * Add a domain name to a DNSME account
 10  
  *
 11  
  * @author Jeff Caddel
 12  
  * @goal adddomain
 13  
  */
 14  0
 public class AddDomainMojo extends BaseDNSMEMojo {
 15  
 
 16  
     /**
 17  
      * The domain name
 18  
      *
 19  
      * @parameter expression="${dnsme.domainName}"
 20  
      * @required
 21  
      */
 22  
     String domainName;
 23  
 
 24  
     @Override
 25  
     public void performTasks(DNSMEClient client) throws MojoExecutionException, MojoFailureException {
 26  0
         Domain domain = new Domain();
 27  0
         domain.setName(domainName);
 28  0
         Domain addedDomain = client.addDomain(domain);
 29  0
         getLog().info("Added: " + addedDomain.getName());
 30  0
     }
 31  
 
 32  
 }