Sha256: 98b1f9367ff07c517a7c5de03154c3dd85d9d28e15aed70505613a8a11e1bc05

Contents?: true

Size: 714 Bytes

Versions: 59

Compression:

Stored size: 714 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)

    result = []

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

    result += plugin_downloader.evaluate
    Puppet::Util::Autoload.reload_changed

    result
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
puppet-retrospec-1.5.0 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.4.1 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.4.0 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.3.2 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.3.1 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.3.0 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.2.1 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.2.0 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.1.0 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-4.5.3 lib/puppet/configurer/plugin_handler.rb
puppet-4.5.3-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.5.3-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.5.3-universal-darwin lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.0.0 vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb
puppet-4.5.2 lib/puppet/configurer/plugin_handler.rb
puppet-4.5.2-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.5.2-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.5.2-universal-darwin lib/puppet/configurer/plugin_handler.rb
puppet-4.5.1 lib/puppet/configurer/plugin_handler.rb
puppet-4.5.1-x86-mingw32 lib/puppet/configurer/plugin_handler.rb