Sha256: b0d388520bb631e5936a139cfb6ff7a63d6f8793cfadd02d89278a60f84ab642

Contents?: true

Size: 408 Bytes

Versions: 17

Compression:

Stored size: 408 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 = create_parser_class('service')
        parser.parse(cmd_ret)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
koma-0.14.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.13.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.12.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.11.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.10.1 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.10.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.9.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.8.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.7.3 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.7.2 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.7.1 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.7.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.6.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.5.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.4.0 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.3.1 lib/koma/ext/specinfra/host_inventory/service.rb
koma-0.3.0 lib/koma/ext/specinfra/host_inventory/service.rb