@Override public ExtractedArtifactStoreBuilder download(DownloadConfig downloadConfig) { super.download(downloadConfig); return this; }
@Override public ExtractedArtifactStoreBuilder download(IDownloadConfig downloadConfig) { super.download(downloadConfig); return this; }
@Deprecated public ArtifactStoreBuilder download(AbstractBuilder<DownloadConfig> downloadConfigBuilder) { return download(downloadConfigBuilder.build()); }
@Deprecated public ArtifactStoreBuilder download(AbstractBuilder<IDownloadConfig> downloadConfigBuilder) { return download(downloadConfigBuilder.build()); }
public static ArtifactStoreBuilder builder(Command command) { return defaultBuilder().download( new DownloadConfigBuilder().defaults() .packageResolver(new PackagePaths(command)) .build()); }
public static ArtifactStoreBuilder builder(Command command) { return defaultBuilder().download(new DownloadConfigBuilder().defaults().packageResolver(new Paths(command)).build()); }
/** * Initializes runtime configuration for cached directory. * If a provided directory is empty, postgres will be extracted into it. * * @param cachedPath path where postgres is supposed to be extracted * @return runtime configuration required for postgres to start */ public static IRuntimeConfig cachedRuntimeConfig(Path cachedPath) { final Command cmd = Command.Postgres; final FixedPath cachedDir = new FixedPath(cachedPath.toString()); return new RuntimeConfigBuilder() .defaults(cmd) .artifactStore(new PostgresArtifactStoreBuilder() .defaults(cmd) .tempDir(cachedDir) .download(new PostgresDownloadConfigBuilder() .defaultsForCommand(cmd) .packageResolver(new PackagePaths(cmd, cachedDir)) .build())) .commandLinePostProcessor(privilegedWindowsRunasPostprocessor()) .build(); }