Model for PuppetDB queries
This library provides classes for retreiving objects from the puppet DB
Example usage
require 'puppetdb/model'
PuppetDB::Model::Base.client = PuppetDB::Client.new(server: 'puppetserver.daho.im')
PuppetDB::Model::Nodes.get(report_environment: 'production').each { |node| puts node.certname }
PuppetDB::Model::Resource.get(exported: true, certname: 'dbserver.daho.im').each { |r| puts r.title }
PuppetDB::Model::Resource.get(certname: 'db.*daho.im', regexp: true).each { |r| puts r.title }
PuppetDB::Model::Resource.get(exported: true)