Class: Puppet::Configurer::DownloaderFactory Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/configurer/downloader_factory.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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.

Instance Method Summary collapse

Instance Method Details

#create_plugin_downloader(environment) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
15
16
17
18
19
20
# 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) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



22
23
24
25
26
27
28
29
30
31
32
33
# 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