class Puppet::Configurer::PluginHandler

Public Instance Methods

download_plugins(environment) click to toggle source

Retrieve facts from the central server.

# File lib/puppet/configurer/plugin_handler.rb, line 12
def download_plugins(environment)
  plugin_downloader = @factory.create_plugin_downloader(environment)

  if Puppet.features.external_facts?
    plugin_fact_downloader = @factory.create_plugin_facts_downloader(environment)
    plugin_fact_downloader.evaluate
  end

  plugin_downloader.evaluate
  Puppet::Util::Autoload.reload_changed
end

Public Class Methods

new(factory) click to toggle source
# File lib/puppet/configurer/plugin_handler.rb, line 7
def initialize(factory)
  @factory = factory
end