Class: ConfigBuilder::ExtensionHandler Private

Inherits:
Object
  • Object
show all
Defined in:
lib/config_builder/extension_handler.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Welcome to hell.

Instance Method Summary collapse

Constructor Details

#initializeExtensionHandler

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ExtensionHandler.



5
6
7
# File 'lib/config_builder/extension_handler.rb', line 5

def initialize
  @logger = Log4r::Logger.new('vagrant::config_builder::extension_handler')
end

Instance Method Details

#load_from_pluginsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
12
13
# File 'lib/config_builder/extension_handler.rb', line 9

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

#load_plugin(plugin) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
18
19
20
# File 'lib/config_builder/extension_handler.rb', line 15

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