1 package org.kuali.common.deploy; 2 3 import org.kuali.common.util.Assert; 4 import org.kuali.common.util.execute.Executable; 5 6 public class DeployExecutable implements Executable { 7 8 private final boolean skip; 9 10 public DeployExecutable(DeployService service) { 11 this(service, false); 12 } 13 14 public DeployExecutable(DeployService service, boolean skip) { 15 Assert.noNulls(service); 16 this.service = service; 17 this.skip = skip; 18 } 19 20 private final DeployService service; 21 22 @Override 23 public void execute() { 24 25 if (skip) { 26 return; 27 } 28 29 service.deploy(); 30 } 31 32 public DeployService getService() { 33 return service; 34 } 35 36 }