continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Sanchez <car...@apache.org>
Subject Continuum-ruby in the sandbox
Date Wed, 04 Nov 2009 23:59:15 GMT
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

Mime
View raw message