Module: PuppetX::Cups::Ipp

Defined in:
lib/puppet_x/cups/ipp.rb

Overview

Namespace encapsulating helpers to query the CUPS server

Defined Under Namespace

Classes: Query, QueryC, QueryError, QueryT

Class Method Summary collapse

Class Method Details

.query(resource, request) ⇒ Object


8
9
10
11
12
13
# File 'lib/puppet_x/cups/ipp.rb', line 8

def self.query(resource, request)
  QueryC.new(resource, request)
rescue QueryError => e
  Puppet.debug(e.message) if defined? Puppet
  QueryT.new(resource, request)
end