@Test public void downloadPackage() throws TaskRunnerException { HeliumPackage pkg = new HeliumPackage( HeliumPackage.Type.VISUALIZATION, "lodash", "lodash", "lodash@3.9.3", "", null, "license", "icon" ); hvf.install(pkg); assertTrue(new File(tmpDir, "vis/node_modules/lodash").isDirectory()); }
synchronized void install(HeliumPackage pkg) throws TaskRunnerException { String commandForNpmInstallArtifact = String.format("install %s --fetch-retries=%d --fetch-retry-factor=%d " + "--fetch-retry-mintimeout=%d", pkg.getArtifact(), FETCH_RETRY_COUNT, FETCH_RETRY_FACTOR_COUNT, FETCH_RETRY_MIN_TIMEOUT); npmCommand(commandForNpmInstallArtifact); }
HeliumVisualizationFactory { synchronized void install(HeliumPackage pkg) throws TaskRunnerException { String commandForNpmInstallArtifact = String.format("install %s --fetch-retries=%d --fetch-retry-factor=%d " + "--fetch-retry-mintimeout=%d", pkg.getArtifact(), FETCH_RETRY_COUNT, FETCH_RETRY_FACTOR_COUNT, FETCH_RETRY_MIN_TIMEOUT); npmCommand(commandForNpmInstallArtifact); } }
HeliumVisualizationFactory { synchronized void install(HeliumPackage pkg) throws TaskRunnerException { String commandForNpmInstallArtifact = String.format("install %s --fetch-retries=%d --fetch-retry-factor=%d " + "--fetch-retry-mintimeout=%d", pkg.getArtifact(), FETCH_RETRY_COUNT, FETCH_RETRY_FACTOR_COUNT, FETCH_RETRY_MIN_TIMEOUT); npmCommand(commandForNpmInstallArtifact); } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); }
HeliumVisualizationFactory { synchronized void install(HeliumPackage pkg) throws TaskRunnerException { String commandForNpmInstallArtifact = String.format("install %s --fetch-retries=%d --fetch-retry-factor=%d " + "--fetch-retry-mintimeout=%d", pkg.getArtifact(), FETCH_RETRY_COUNT, FETCH_RETRY_FACTOR_COUNT, FETCH_RETRY_MIN_TIMEOUT); npmCommand(commandForNpmInstallArtifact); } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); File bundle(List<HeliumPackage> pkgs); synchronized File bundle(List<HeliumPackage> pkgs, boolean forceRefresh); File getCurrentBundle(); }
HeliumVisualizationFactory { synchronized void install(HeliumPackage pkg) throws TaskRunnerException { String commandForNpmInstallArtifact = String.format("install %s --fetch-retries=%d --fetch-retry-factor=%d " + "--fetch-retry-mintimeout=%d", pkg.getArtifact(), FETCH_RETRY_COUNT, FETCH_RETRY_FACTOR_COUNT, FETCH_RETRY_MIN_TIMEOUT); npmCommand(commandForNpmInstallArtifact); } HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath,
      File tabledataModulePath,
      File visualizationModulePath);  HeliumVisualizationFactory(
      ZeppelinConfiguration conf,
      File moduleDownloadPath); File bundle(List<HeliumPackage> pkgs); synchronized File bundle(List<HeliumPackage> pkgs, boolean forceRefresh); File getCurrentBundle();  }