3 # Discovery agent for The Marionette Collective
5 # Released under the Apache License, Version 2
7 attr_reader :timeout, :meta
10 config = Config.instance.pluginconf
13 @timeout = config["discovery.timeout"].to_i if config.include?("discovery.timeout")
15 @meta = {:license => "Apache License, Version 2",
16 :author => "R.I.Pienaar <rip@devco.net>",
18 :name => "Discovery Agent",
19 :version => MCollective.version,
20 :url => "http://www.marionette-collective.org",
21 :description => "MCollective Discovery Agent"}
24 def handlemsg(msg, stomp)
25 reply = "unknown request"
32 reply = "Unknown Request: #{msg[:body]}"