class Puppet::Configurer::DownloaderFactory

Factory for Puppet::Configurer::Downloader objects.

Puppet’s pluginsync facilities can be used to download modules and external facts, each with a different destination directory and related settings.

@api private

Public Instance Methods

create_plugin_downloader(environment) click to toggle source
# File lib/puppet/configurer/downloader_factory.rb, line 12
def create_plugin_downloader(environment)
  plugin_downloader = Puppet::Configurer::Downloader.new(
    "plugin",
    Puppet[:plugindest],
    Puppet[:pluginsource],
    Puppet[:pluginsignore],
    environment
  )
end
create_plugin_facts_downloader(environment) click to toggle source
# File lib/puppet/configurer/downloader_factory.rb, line 22
def create_plugin_facts_downloader(environment)
  source_permissions = Puppet.features.microsoft_windows? ? :ignore : :use

  plugin_fact_downloader = Puppet::Configurer::Downloader.new(
    "pluginfacts",
    Puppet[:pluginfactdest],
    Puppet[:pluginfactsource],
    Puppet[:pluginsignore],
    environment,
    source_permissions
  )
end