Module MCollective::PluginPackager
In: lib/mcollective/pluginpackager.rb
lib/mcollective/pluginpackager/standard_definition.rb
lib/mcollective/pluginpackager/agent_definition.rb

Methods

Classes and Modules

Class MCollective::PluginPackager::AgentDefinition
Class MCollective::PluginPackager::StandardDefinition

Public Class methods

[Source]

    # File lib/mcollective/pluginpackager.rb, line 12
12:     def self.[](klass)
13:       const_get("#{klass}")
14:     end

[Source]

    # File lib/mcollective/pluginpackager.rb, line 22
22:     def self.check_dir_present(path)
23:       (File.directory?(path) && !Dir.glob(File.join(path, "*")).empty?)
24:     end

[Source]

    # File lib/mcollective/pluginpackager.rb, line 16
16:     def self.get_metadata(path, type)
17:       ddl = MCollective::RPC::DDL.new("package", false)
18:       ddl.instance_eval File.read(Dir.glob(File.join(path, type, "*.ddl")).first)
19:       ddl.meta
20:     end

Package implementation plugins

[Source]

    # File lib/mcollective/pluginpackager.rb, line 8
 8:     def self.load_packagers
 9:       PluginManager.find_and_load("pluginpackager")
10:     end

[Validate]