String target;
if (isCalledAs("deploy")) {
String userTarget = null;
if (getArgumentCount() == 2)
userTarget = args[1].getStringValue();
target = deployment.deploy(pkgName, context.getRepository(), userTarget);
} else if (isCalledAs("install-and-deploy")) {
String version = null;
String repoURI;
if (getArgumentCount() == 3) {
version = args[1].getStringValue();