1 class MCollective::Application::Find<MCollective::Application
2 description "Find hosts using the discovery system matching filter criteria"
5 mc = rpcclient("rpcutil")
11 discoverytime = Time.now - starttime
13 STDERR.puts if options[:verbose]
15 nodes.each {|c| puts c}
17 STDERR.puts "\nDiscovered %s nodes in %.2f seconds using the %s discovery plugin" % [nodes.size, discoverytime, mc.client.discoverer.discovery_method] if options[:verbose]
19 nodes.size > 0 ? exit(0) : exit(1)