Module: VMC::Plugin

Defined in:
lib/vmc/plugin.rb

Constant Summary collapse

@@plugins =
[]

Class Method Summary collapse

Class Method Details

.load_allObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/vmc/plugin.rb', line 11

def self.load_all
  # auto-load gems with 'vmc-plugin' in their name

  #
  # cloulu 안에 포함할 plugin 은 여기에 등록해야 포함될 수 있다.
  #
  # - tunnel-vmc
  # - manifests-vmc
  #
  # @nanhapark
  enabled = ['tunnel-vmc-plugin', 'manifests-vmc-plugin']


  # load up each gem's 'plugin' file
  #
  # we require this file specifically so people can require the gem
  # without it plugging into VMC
  enabled.each do |gemname|
    begin
      require "#{gemname}/plugin"
    rescue Gem::LoadError => e
      puts "Failed to load #{gemname}:"
      puts "  #{e}"
      puts
      puts "You may need to update or remove this plugin."
      puts
    end
  end
end