Change in ovirt-engine-sdk-ruby[sdk_4.0]: Add generic writer

juan.hernandez at redhat.com juan.hernandez at redhat.com
Mon Sep 12 10:20:30 UTC 2016


Juan Hernandez has submitted this change and it was merged.

Change subject: Add generic writer
......................................................................


Add generic writer

Currently the SDK doesn't have any mechanism to generate an XML document
from an object whose type isn't known. This patch adds a new
'Writer.write' method that decides what is the specific writer to use
based on the type of the object, so that the caller doesn't need to
explicitly select it.

Change-Id: I0f6f8af923253707e55b98f04f3407105dc529b4
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 66eddb23bd35b73201f6d2414f7aa127d4b7a12c)
---
M generator/src/main/java/org/ovirt/sdk/ruby/WritersGenerator.java
M sdk/lib/ovirtsdk4/writer.rb
M sdk/spec/writer_spec.rb
3 files changed, 149 insertions(+), 0 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/63672
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0f6f8af923253707e55b98f04f3407105dc529b4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-ruby
Gerrit-Branch: sdk_4.0
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list