X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmcollective%2Fddl%2Fdiscoveryddl.rb;fp=lib%2Fmcollective%2Fddl%2Fdiscoveryddl.rb;h=041865c7e6a5385016b439375678a41e084c309c;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/lib/mcollective/ddl/discoveryddl.rb b/lib/mcollective/ddl/discoveryddl.rb new file mode 100644 index 0000000..041865c --- /dev/null +++ b/lib/mcollective/ddl/discoveryddl.rb @@ -0,0 +1,52 @@ +module MCollective + module DDL + # DDL for discovery plugins, a full example can be seen below + # + # metadata :name => "mc", + # :description => "MCollective Broadcast based discovery", + # :author => "R.I.Pienaar ", + # :license => "ASL 2.0", + # :version => "0.1", + # :url => "http://marionette-collective.org/", + # :timeout => 2 + # + # discovery do + # capabilities [:classes, :facts, :identity, :agents, :compound] + # end + class DiscoveryDDL []} + + @current_entity = :discovery + block.call if block_given? + @current_entity = nil + end + end + end +end