Examples of PluginRef


Examples of org.jboss.forge.shell.util.PluginRef

   public void installFromIndex(
            @Option(description = "plugin-name", completer = IndexPluginNameCompleter.class) 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,
                     out);
         }
         else
         {
            throw new UnsupportedOperationException("Not yet implemented");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.