Class: PuppetX::Cups::Ipp::QueryC

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

Overview

Wrapper class for queries using `ipptool -c`

Instance Method Summary collapse

Methods inherited from Query

#initialize

Constructor Details

This class inherits a constructor from PuppetX::Cups::Ipp::Query

Instance Method Details

#resultsObject


41
42
43
44
45
# File 'lib/puppet_x/cups/ipp.rb', line 41

def results
  lines = @shellout.stdout.split("\n")

  lines[1..-1]
end