Sha256: a2b306e94c60aa6f67c5d30978633d3644682cee0ce2eeceee584df70d18c272

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

module Specinfra
  class HostInventory
    class Package < Base
      def get
        cmd = backend.command.get(:get_inventory_package)
        ret = backend.run_command(cmd)
        if ret.success?
          parse(ret.stdout)
        else
          nil
        end
      end

      def parse(cmd_ret)
        parser.get('package').parse(cmd_ret)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
koma-0.17.0 lib/koma/ext/specinfra/host_inventory/package.rb
koma-0.16.0 lib/koma/ext/specinfra/host_inventory/package.rb
koma-0.15.0 lib/koma/ext/specinfra/host_inventory/package.rb