Method: PuppetDBQuery::MongoDB#initialize
- Defined in:
- lib/puppetdb_query/mongodb.rb
#initialize(connection, nodes = :nodes, node_properties = :node_properties, meta = :meta) ⇒ MongoDB
initialize access to mongodb
You might want to adjust the logging level, for example:
::Mongo::Logger.logger.level = logger.level
39 40 41 42 43 44 |
# File 'lib/puppetdb_query/mongodb.rb', line 39 def initialize(connection, nodes = :nodes, node_properties = :node_properties, = :meta) @connection = connection @nodes_collection = nodes @node_properties_collection = node_properties @meta_collection = end |