Class: PuppetX::Cups::Ipp::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_x/cups/ipp.rb

Overview

The abstract superclass for IPP Queries using the `ipptool` command line utility

Direct Known Subclasses

QueryC, QueryT

Instance Method Summary collapse

Constructor Details

#initialize(resource, request) ⇒ Query

Returns a new instance of Query


18
19
20
21
22
# File 'lib/puppet_x/cups/ipp.rb', line 18

def initialize(resource, request)
  @shellout = PuppetX::Cups::Shell.ipptool(switch, resource, request)

  raise! if failed?
end