Skip to content

Instantly share code, notes, and snippets.

View traylenator's full-sized avatar

Steve Traylen traylenator

View GitHub Profile
module MCollective
class Discovery
class Mongo
require 'mongo'
class << self
def discover(filter, timeout, limit=0, client=nil)
config = Config.instance
mongohost = config.pluginconf["registration.mongohost"] || "localhost"