Module Puppet::Util::Puppetdb
In: lib/puppet/util/puppetdb/char_encoding.rb
lib/puppet/util/puppetdb/command_names.rb
lib/puppet/util/puppetdb/blacklist.rb
lib/puppet/util/puppetdb/config.rb
lib/puppet/util/puppetdb.rb

Methods

Classes and Modules

Module Puppet::Util::Puppetdb::CharEncoding
Module Puppet::Util::Puppetdb::ClassMethods
Module Puppet::Util::Puppetdb::CommandNames
Class Puppet::Util::Puppetdb::Blacklist
Class Puppet::Util::Puppetdb::Command
Class Puppet::Util::Puppetdb::Config

Public Class methods

Convert a value (usually a string) to a boolean

Given an instance of ruby‘s Time class, this method converts it to a String that conforms to PuppetDB‘s wire format for representing a date/time.

Public Instance methods

@api private

Profile a block of code and log the time it took to execute.

This outputs logs entries to the Puppet masters logging destination providing the time it took, a message describing the profiled code and a leaf location marking where the profile method was called in the profiled hierachy.

@param message [String] A description of the profiled event @param metric_id [Array] A list of strings making up the ID of a metric to profile @param block [Block] The segment of code to profile @api public

Submit a command to PuppetDB.

@param certname [String] hostname name of puppetdb instance @param payload [String] payload @param command_name [String] name of command @param version [Number] version number of command @return [Hash <String, String>]

[Validate]