Search in sources :

Example 1 with Front50FileDownloader

use of com.netflix.spinnaker.kork.plugins.update.downloader.Front50FileDownloader in project kork by spinnaker.

the class Front50PluginsConfiguration method front50FileDownloader.

@Bean
public static Front50FileDownloader front50FileDownloader(Environment environment, PluginOkHttpClientProvider pluginsOkHttpClientProvider, Map<String, PluginRepositoryProperties> pluginRepositoriesConfig) {
    PluginRepositoryProperties front50RepositoryProps = pluginRepositoriesConfig.get(PluginsConfigurationProperties.FRONT5O_REPOSITORY);
    URL front50Url = getFront50Url(environment, front50RepositoryProps);
    return new Front50FileDownloader(pluginsOkHttpClientProvider.getOkHttpClient(), front50Url);
}
Also used : PluginRepositoryProperties(com.netflix.spinnaker.config.PluginsConfigurationProperties.PluginRepositoryProperties) Front50FileDownloader(com.netflix.spinnaker.kork.plugins.update.downloader.Front50FileDownloader) URL(java.net.URL) Bean(org.springframework.context.annotation.Bean)

Aggregations

PluginRepositoryProperties (com.netflix.spinnaker.config.PluginsConfigurationProperties.PluginRepositoryProperties)1 Front50FileDownloader (com.netflix.spinnaker.kork.plugins.update.downloader.Front50FileDownloader)1 URL (java.net.URL)1 Bean (org.springframework.context.annotation.Bean)1