Sha256: 8a86567371634144a7d1f316b270f2fecbe83d9755270a8564fab0d57290834a

Contents?: true

Size: 541 Bytes

Versions: 24

Compression:

Stored size: 541 Bytes

Contents

module ConfigBuilder
  # Welcome to hell.
  # @api private
  class ExtensionHandler
    def initialize
      @logger = Log4r::Logger.new('vagrant::config_builder::extension_handler')
    end

    def load_from_plugins
      Vagrant.plugin('2').manager.registered.each do |plugin|
        load_plugin(plugin)
      end
    end

    def load_plugin(plugin)
      if plugin.respond_to? :config_builder_hook
        @logger.info "Loading config_builder extension #{plugin.inspect}"
        plugin.config_builder_hook
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
vagrant-config_builder-1.3.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-1.2.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-1.1.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-1.0.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-1.0.0.rc1 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.15.1 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.15.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.14.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.13.0 lib/config_builder/extension_handler.rb
vagrant-masonry-0.13.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.12.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.11.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.10.1 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.10.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.9.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.8.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.7.1 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.7.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.6.0 lib/config_builder/extension_handler.rb
vagrant-config_builder-0.5.0 lib/config_builder/extension_handler.rb