X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmcollective%2Fregistration.rb;fp=lib%2Fmcollective%2Fregistration.rb;h=98ddf1fb93fc5e8ae3b060b98447eef42047bb38;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/lib/mcollective/registration.rb b/lib/mcollective/registration.rb new file mode 100644 index 0000000..98ddf1f --- /dev/null +++ b/lib/mcollective/registration.rb @@ -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/.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