Module: Kontena::PluginManager

Defined in:
lib/kontena/plugin_manager.rb,
lib/kontena/plugin_manager/common.rb,
lib/kontena/plugin_manager/loader.rb,
lib/kontena/plugin_manager/cleaner.rb,
lib/kontena/plugin_manager/installer.rb,
lib/kontena/plugin_manager/uninstaller.rb,
lib/kontena/plugin_manager/rubygems_client.rb

Defined Under Namespace

Modules: Common Classes: Cleaner, Installer, Loader, RubygemsClient, Uninstaller

Class Method Summary collapse

Class Method Details

.initObject

Initialize plugin manager



11
12
13
14
15
16
17
# File 'lib/kontena/plugin_manager.rb', line 11

def init
  ENV["GEM_HOME"] = Common.install_dir
  Gem.paths = ENV
  Common.use_dummy_ui unless Kontena.debug?
  plugins
  true
end

.pluginsArray<Gem::Specification>

Returns:

  • (Array<Gem::Specification>)


21
22
23
# File 'lib/kontena/plugin_manager.rb', line 21

def plugins
  @plugins ||= Loader.new.load_plugins
end