Sha256: e2b57f7273a73d416c95ba6eaa701f37c3438dd5bff876ce10d01c60b820ca4b

Contents?: true

Size: 665 Bytes

Versions: 59

Compression:

Stored size: 665 Bytes

Contents

# Break out the code related to plugins.  This module is
# just included into the agent, but having it here makes it
# easier to test.
require 'puppet/configurer'

class Puppet::Configurer::PluginHandler
  def initialize(factory)
    @factory = factory
  end

  # Retrieve facts from the central server.
  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
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
puppet-retrospec-0.12.2 vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb
puppet-3.8.7 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.7-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.7-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.6 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.6-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-0.12.1 vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb
puppet-3.8.6-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-0.12.0 vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb
puppet-3.8.5 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.5-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.5-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.4 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.4-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.8.4-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-0.11.0 vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-0.10.0 vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-0.9.1 vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-0.9.0 vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-0.8.1 vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb