Coverage Report - org.kuali.maven.plugins.dnsme.mojo.DeleteDomainMojo
 
Classes in this File Line Coverage Branch Coverage Complexity
DeleteDomainMojo
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  
  * Delete a domain from a DNSME account
 10  
  *
 11  
  * @author Jeff Caddel
 12  
  * @goal deletedomain
 13  
  */
 14  0
 public class DeleteDomainMojo 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
         client.deleteDomain(domain);
 29  0
         getLog().info("Deleted: " + domainName);
 30  0
     }
 31  
 
 32  
 }