Sha256: c1b932790b2d4fc1cca1153227d62d98efc0caaf19de1f1ea39755543a7c39dc

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

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

      def parse(cmd_ret)
        parser.get('service').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/service.rb
koma-0.16.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.15.0 lib/koma/ext/specinfra/host_inventory/service.rb