You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by Carlos Sanchez <ca...@apache.org> on 2009/11/05 00:59:15 UTC
Continuum-ruby in the sandbox
I have added to the sandbox
Ruby library to interact with Continuum, using the XML-RPC interface
and enabling access
to the working copy directories.
https://svn.apache.org/repos/asf/continuum/sandbox/continuum-ruby/
Example
=======
continuum = Continuum::Continuum.new("my.continuum.host", 8080,
"admin", "password", "/continuum")
# xml-rpc interface
xml_rpc = Continuum::XmlRpc.new(continuum)
ok, result = xml_rpc.build_project(1)
error = Continuum.parse_error(result) if !ok
# getting working copy files
working_copy = Continuum::WorkingCopy.new(continuum)
test_results = working_copy.get(1, "target/surefire-reports",
"emailable-report.html")
files = working_copy.dir(1, "target")
files.each do |file|
file_content = working_copy.get(1, "target", file)
end