public void installFromIndex(
@Option(description = "plugin-name", completer = IndexPluginNameCompleter.class, required = true) final String pluginName,
@Option(name = "version", description = "branch, tag, or version to build") final String version,
final PipeOut out) throws Exception
{
PluginRef plugin = PluginUtil.findPluginByName(shell, configuration, pluginName, true);
if (plugin == null)
{
throw new RuntimeException("no plugin found with name [" + pluginName + "]");
}
else
{
ShellMessages.info(out, "Preparing to install plugin: " + plugin.getName());
if (plugin.isGit())
{
installFromGit(plugin.getGitRepo(), Strings.isNullOrEmpty(version) ? plugin.getGitRef() : version, null,
false,
out);
}
else
{