Sha256: 23457bd09d1e904b946e9d5361573f3818a850ddbdf0346e14013561382c61b1

Contents?: true

Size: 663 Bytes

Versions: 129

Compression:

Stored size: 663 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 = []

    plugin_fact_downloader = @factory.create_plugin_facts_downloader(environment)
    result += plugin_fact_downloader.evaluate

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

    result
  end
end

Version data entries

129 entries across 129 versions & 3 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/configurer/plugin_handler.rb
puppet-4.10.12 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.12-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.12-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.12-universal-darwin lib/puppet/configurer/plugin_handler.rb
puppet-4.10.11 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.11-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.11-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.11-universal-darwin lib/puppet/configurer/plugin_handler.rb
puppet-4.10.10 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.10-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.10-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.10-universal-darwin lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/configurer/plugin_handler.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/configurer/plugin_handler.rb
puppet-4.10.9 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.9-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.9-x64-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-4.10.9-universal-darwin lib/puppet/configurer/plugin_handler.rb