Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / lib / mcollective / registration.rb
diff --git a/lib/mcollective/registration.rb b/lib/mcollective/registration.rb
new file mode 100644 (file)
index 0000000..98ddf1f
--- /dev/null
@@ -0,0 +1,16 @@
+module MCollective
+  # Registration is implimented using a module structure and installations can
+  # configure which module they want to use.
+  #
+  # We provide a simple one that just sends back the list of current known agents
+  # in MCollective::Registration::Agentlist, you can create your own:
+  #
+  # Create a module in plugins/mcollective/registration/<yourplugin>.rb
+  #
+  # You can inherit from MCollective::Registration::Base in which case you just need
+  # to supply a _body_ method, whatever this method returns will be send to the
+  # middleware connection for an agent called _registration_
+  module Registration
+    autoload :Base, "mcollective/registration/base"
+  end
+end